1.

Which of the following provides a programmer with the facility of using object of a class inside other classes?(a) Inheritance(b) Composition(c) Abstraction(d) EncapsulationI got this question by my school teacher while I was bunking the class.Enquiry is from OOPs Concept in division Basics Concepts of C++ of C++

Answer»

The CORRECT answer is (B) Composition

Explanation: The concept of USING objects of one CLASS into another class is KNOWN as Composition.



Discussion

No Comment Found

Related InterviewSolutions