Is it possible for derived classes to access the private data in their base class?

What will be an ideal response?


It is not possible for the children classes to directly access the base class data if the data is declared private. The derived classes would have to use the base class sets and gets.

Computer Science & Information Technology

You might also like to view...

Overloaded methods always have the same _________.

a. method name b. return type c. number of parameters d. order of the parameters

Computer Science & Information Technology

Add exception handling to the activity diagram you developed in Exercise 2–15. Consider at least three exceptions (e.g., delivery person wrote down wrong address, deliver person brings wrong pizza, store out of anchovies).

What will be an ideal response?

Computer Science & Information Technology

To reject a tracked change, in the Changes group, click the Reject button or click the arrow next to the Reject button, and then click Reject Change.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You use the href attribute to specify the name of the web page or other document to link to, which is known as the ____ document.

A. source B. default C. recipient D. target

Computer Science & Information Technology