Category: OOP
code: class Operation{ int square(int n){ return n*n; } } class Circle{ Operation op;//aggregation double pi=3.14; double…
Encapsulation is one of the four fundamental OOP concepts.The other three are inheritance,polymorphism and abstraction. it is…
In OOP abstraction is a process of hiding the implementation details from the use, only the functionality…
Polymorphism the most common use of OOP occurs when a parent class reference is used to refer…
If subclass has the same method s declared in the parent class, it is known as method…
The classs which inherits the properties of other is known as subclass(derived class,child class etc.) and the…
Recent Comments