Abstraction in OOPs
Abstraction in OOPs Abstraction in Object Oriented Programming helps to hide the irrelevant details of an object. Abstraction is separating the functions and properties that logically can be separated to a separate entity which the main type depends on. This kind of Abstraction helps in separating the members that change frequently. Abstraction is one of the key principles of the OOAD (Object oriented analysis and Design). Applying Abstraction during the design and domain modeling, helps a lot in design the a system which is flexible and maintainable. Abstraction is achieved by Composition. Abstraction Example: A Car has Engine, wheels and many other parts. When we write all the properties of the Car, Engine, and wheel in a single class, it would look this way: public class Car { int price; String name; String color; int engineCapacity; int engineHorsePower; String wheelName; int wheelPrice; vo