1.

Which feature of OOP reduces the use of nested classes?(a) Encapsulation(b) Inheritance(c) Binding(d) AbstractionThe question was posed to me during an online exam.My question is based upon Nested Class topic in portion Class Members & Types of Object Oriented Programming

Answer»

Correct CHOICE is (B) INHERITANCE

The best explanation: USING inheritance we can have the security of the class being inherited. The subclass can access the members of parent class. And have more feature than a NESTED class being used.



Discussion

No Comment Found

Related InterviewSolutions