C++ True or False (True → CAN be accessed, False → CANNOT be accessed) П П 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' friend, accessed using the dot operator? r. From main, accessed using the dot operator?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 7SA: Assume the definition of class foodType as given in Exercise 6. Answer the following questions? (1,...
icon
Related questions
Question
C++
True or False (True
→ CAN be accessed, False
→ CANNOT be accessed)
П
П
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' friend,
accessed using the dot operator?
r. From main, accessed using the dot operator?
Transcribed Image Text:C++ True or False (True → CAN be accessed, False → CANNOT be accessed) П П 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' friend, accessed using the dot operator? 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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,