Explain how a subclass can can access its parent classes private instance variables and methods.
What will be an ideal response?
A subclass can access private instance variables and methods of its parent class, but only indirectly. There
must be public methods that access the private data and methods directly. These public methods can then be called by the
subclass, which gives indirect access to the private variables and methods of the parent class.
You might also like to view...
Friendship cannot be declared between a class template and:
a. A class-template specialization. b. A member function of another class. c. Another class template. d. A global function.
The ________ command can be used to see what a Layer 2 MAC address corresponds to a known Layer 3 IP address
A) mac B) arp C) netstat D) pathping
The goal of ARPA was to build a network that allowed scientists at different physical locations to share information and work together on military and scientific projects.
Answer the following statement true (T) or false (F)
Many who move to business-oriented information security were formerly__________ who were often involved in national security or cybersecurity .
A. marketing managers B. military personnel C. business analysts D. lawyers