1.

Encapsulation and abstraction differ as ____________(a) Binding and Hiding respectively(b) Hiding and Binding respectively(c) Can be used any way(d) Hiding and hiding respectivelyThe question was posed to me in class test.Query is from Abstraction topic in division OOPs Concept & Features of Object Oriented Programming

Answer»

The correct OPTION is (a) BINDING and HIDING respectively

Best explanation: Abstraction is hiding the complex code. For example, we directly use cout object in C++ but we don’t know how is it actually implemented. Encapsulation is data binding, as in, we TRY to combine a SIMILAR type of data and functions together.



Discussion

No Comment Found

Related InterviewSolutions