Private data elements are not accessible outside the class. When you derive one
ID: 3561167 • Letter: P
Question
Private data elements are not accessible outside the class. When you derive one class from another, you can control how much access the derived class has to the base class members. When you derive a class from an existing one, you cannot use an access modifier. You have options that allow you to customize how those inherited member functions. Inheritance does not allow you to create a more specialized version of an existing class. The functionality of base classes exists only once in a program. What allows us to access elements of another class? When we access a parent class with the public keyword, protected parent elements are? When we access a parent class with the protected keyword, private parent elements are? When we access a parent class with the private keyword, public parent elements are?Explanation / Answer
1) TRUE
2) TRUE
3) FALSE
4) TRUE
5) FALSE
6) FALSE
7) (C) INHERITANCE
8) (B) PROTECTED
9) (B) PRIVATE
10) (B) PUBLIC
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.