If a base class has public Set and Get functions for its data members, does a child of that class inherit these Sets and Gets or does the programmer have to write new Set and Get functions? Explain.
What will be an ideal response?
If the Set and Get functions are either protected or public, the child inherits them. It doesn’t make sense for Set and Get functions to be protected, as they should be used by the object (who only has access to public members).
You might also like to view...
Which of the following security models is a subject-object model that introduces a new element, programs?
A) Biba Integrity Model B) Clark-Wilson Model C) Chinese Wall Model D) Bell-LaPadula Model
The Font Dialog Box Launcher is accessible from the Font group on the _____ tab.
A. HOME B. INSERT C. DESIGN D. REVIEW
An InDesign article is uploaded to a folio on the iPad as a jpeg image.
Answer the following statement true (T) or false (F)
A selection stays selected until you ____________________ it.
Fill in the blank(s) with the appropriate word(s).