Allianz interview question

abstraction,object class,encapsulation etc

Interview Answer

Anonymous

20 May 2017

In Object-oriented programming, abstraction is a process of hiding the implementation details from the user, only the functionality will be provided to the user. object = instance of a class In encapsulation, the variables of a class will be hidden from other classes, and can be accessed only through the methods of their current class.