Category: Language
Interface is a collection of abstract methods.A class implements an interface, thereby inheriting the abstract method of…
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…
Recent Comments