Ask Question
8 June, 14:42

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?

+1
Answers (1)
  1. 8 June, 17:28
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers