Ask Question
15 May, 09:10

In the implementation of the getMax () function in the PriQueue class, we need to read and write the variables "front" and "rear", which are defined as protected members in the base class Queue. Are the functions in the derived class allowed to access the protected members in the base class?

+3
Answers (1)
  1. 15 May, 10:46
    0
    The answer to the given question is "yes".

    Explanation:

    In the programming language, Protected is a keyword that is used as an access modifier by using protected members we only access within the same class and it also provides access to use this member in the derived class that is inherited by derived class from the base class.

    That's why the answer to this question is "yes".
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In the implementation of the getMax () function in the PriQueue class, we need to read and write the variables "front" and "rear", which ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers