Question: c++ 1)A base/member initialization list produces results that are exactly ________ a)assignment b)redeclaration c)redefinition d)initialization e)output 2)Select the correct rules for encapsulation. If any rules

c++

1)A base/member initialization list produces results that are exactly ________

a)assignment

b)redeclaration

c)redefinition

d)initialization

e)output

2)Select the correct rules for encapsulation. If any rules need to be imposed in a particular order, then say so, mentioning which rules.(multiple answers)

a)

Make all class member variables public members of the class.

b)

Place the interface in the header file. What is the interface?

c)

Place the implementation in a separate code file (with file extension required by your compiler: .cpp, .cxx, etc), called the implementation file. What is the implementation?

d)

Having private members visible in the interface violates the philosophy of separating the interface from the implementation. Separate interface and implementation requires removal of all the private members from the class definition. You must put these in another part of the class definition in the implementation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!