What is Encapsulation
In object-oriented programming (OOP), encapsulation is one of the basic principles. It explains the concept of bundling data and methods within one...
what is inheritance in OOPS ?
Inheritance is a mechanism in which the child class acquires parent class properties.
Why we use inheritance in our project or code ?
Inheritance supports the idea of “reusability”, i.e. When...
What is Polymorphism ?
Polymorphism is the ability to perform different operation in different scenarios. Sometimes, the polymorphism is based on the input parameters...
What is abstraction ?
Abstraction is the practice of hiding from the outside world the internal information of an application. To explain things in simple terms, abstraction is used. It's used to establish a boundary between the client systems and the application.
This is
Real world example
Let 's take the first example of a vehicle that abstracts the internal information and reveals only those data to the driver that are important to the driver's interaction with the vehicle. Like we are giving only break and accelerator, don't give any internal working of it.
What are the different abstraction types?
There...