OOPs concepts
In this article we will learn about OOP ( Object oriented programing ) concepts. If you want to learn further lessons about objects, classes, inheritance, polymorphism, how objects interact with each other then you must read these lesson carefully. There are total 7 core OOPs concepts. 1. Abstraction Abstraction is the concept of hiding the internal details and describing things in simple terms. For example, a method that adds two integers. The method internal processing is hidden from outer world. There are many ways to achieve abstraction in object oriented programming, such as encapsulation and inheritance. A java program is also a great example of abstraction. Here java takes care of converting simple statements to machine language and hides the inner implementation details from outer world. 2. Encapsulation Encapsulation is the technique used to implement abstraction in object oriented programming. Encapsulation is used for access restriction ...