Question: Please help with these True or False questions: a) Objects of type Child can read (or write) private variables defined in Parent. b) Objects of
Please help with these True or False questions:
a) Objects of type Child can read (or write) private variables defined in Parent.
b) Objects of type Parent can read (or write) private variables defined in Child.
c) If class X publicly inherits from class Y, then private methods in Y will be inherited as private in X
d) If class X publicly inherits from class Y, then public methods in Y will be inherited as public in X
e) All virtual methods must also be abstract
f) All abstract methods must also be public
f) Getters can be virtual
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
