C++ True or False (True → CAN be accessed, False → CANNOT be accessed) A protected variable declared in class ABC CAN be accessed: g. From a member function of class ABC? h. From a member function of a child class of ABC? i. From a friend function of class ABC, accessed using the dot operator? - j. From a member function of a friend class of ABC, accessed using the dot operator? k. From an otherwise unrelated class that declares ABC to be its' friend, accessed using the dot operator? - I. From main, accessed using the dot operator? A private variable declared in class ABC CAN be accessed: m. From a member function of class ABC? n. From a member function of a child class of ABC? o. From a friend function of class ABC, accessed using the dot operator? p. From a member function of a friend class of ABC, accessed using the dot operator? q. From an otherwise unrelated class that declares ABC to be its' accessed using the dot operator? nd, r. From main, accessed using the dot operator?

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.4: Class Inheritance And Polymorphism
Problem 6E
icon
Related questions
Question
C++
True or False (True
→ CAN be accessed, False
→ CANNOT be accessed)
A protected variable declared in class ABC CAN be accessed:
g. From a member function of class ABC?
h. From a member function of a child class of ABC?
i. From a friend function of class ABC, accessed using the dot operator?
- j. From a member function of a friend class of ABC, accessed using the dot
operator?
k. From an otherwise unrelated class that declares ABC to be its' friend,
accessed using the dot operator?
- I. From main, accessed using the dot operator?
A private variable declared in class ABC CAN be accessed:
m. From a member function of class ABC?
n. From a member function of a child class of ABC?
o. From a friend function of class ABC, accessed using the dot operator?
p. From a member function of a friend class of ABC, accessed using the dot
operator?
q. From an otherwise unrelated class that declares ABC to be its'
accessed using the dot operator?
nd,
r. From main, accessed using the dot operator?
Transcribed Image Text:C++ True or False (True → CAN be accessed, False → CANNOT be accessed) A protected variable declared in class ABC CAN be accessed: g. From a member function of class ABC? h. From a member function of a child class of ABC? i. From a friend function of class ABC, accessed using the dot operator? - j. From a member function of a friend class of ABC, accessed using the dot operator? k. From an otherwise unrelated class that declares ABC to be its' friend, accessed using the dot operator? - I. From main, accessed using the dot operator? A private variable declared in class ABC CAN be accessed: m. From a member function of class ABC? n. From a member function of a child class of ABC? o. From a friend function of class ABC, accessed using the dot operator? p. From a member function of a friend class of ABC, accessed using the dot operator? q. From an otherwise unrelated class that declares ABC to be its' accessed using the dot operator? nd, r. From main, accessed using the dot operator?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning