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).

Computer Science & Information Technology

You might also like to view...

Match the following terms to their meanings:

I. SkyDrive II. Office 365 III. cloud integration technology IV. WordPress V. Send Invitations A. Microsoft Office products available online B. to share data online C. a button in Online Presentation D. virtual storage location E. a blogging service

Computer Science & Information Technology

Which of the following statements is true?

a) One advantage of Windows 8 UI over Windows Forms is that you can customize the look-and-feel of controls to meet your app’s needs. b) Many controls that allowed only text content in Windows Forms are ContentControls in Windows 8 UI. c) ContentControls can host any type of content—including other controls. d) All of the above

Computer Science & Information Technology