OOPs Concepts
OOPS (Object Oriented Programming Structures) What is Abstraction? Abstraction is the concept of hiding irrelevant (not related to the task) details.In other words, make complex/typical system simple by hiding the unnecessary detail from the user and make it user-friendly. The abstract class specifies what functionality is provided but not how that functionality is provided. For example, one does not want to understand how the engine works. Similarly one does not have to understand the internal implementation of the software objects. Abstraction provides a way to hide the less essential properties so as to reduce complexity and increase efficiency. Abstraction Example: Engine and Driver. What is Encapsulation? Encapsulation is the technique of making the fields in a class private and providing access to the fields through public methods. Encapsulation is also called as data hiding. The benefits of encapsulation: The capability of changing\updating your code without di...