Objects And Classes(C++ Programming ) Questions and Answers
Explanation:-
Answer: Option C. -> Both 1 and 2 are correct.
Explanation:-
Answer: Option C. -> Member function and data are by default public in structures but private in classes.
Explanation:-
Answer: Option C. -> Composition
Explanation:-
Answer: Option D. -> Both B and C
Explanation:-
Answer: Option B. -> Both data and functions can be either private or public.
Explanation:-
Answer: Option A. -> Zero
Explanation:-
Answer: Option A. -> an object is created
Explanation:-
Answer: Option B. -> has a relationship
Explanation:-
Answer: Option B. -> It is used to avoid multiple copies of base class in derived class.
Explanation:-
Answer: Option B. -> Public members of the base class become private members of derived class.