Languages which support OOPS principle(Polymorphism,Inheritance,Encapsulation) and where all operations are performed with the help of Objects are considered to be a Pure OO Language.
Java Supports following :-
1.Polymorphism(Compile Time,Run Time).
2.Inheritance(Single,Multilevel,Multiple Interface Inheritance).
3.Encapsulation/Data Hiding.
4.Primitive Wrappers.
5.Abstraction.
Although above points make it to a good candidate to Pure Object Oriented Programming Language , Multiple Class Inheritance(Not supported in java) , Primitives (int,char,short,long etc) prevents it to become pure OO programming language.
Java Supports following :-
1.Polymorphism(Compile Time,Run Time).
2.Inheritance(Single,Multilevel,Multiple Interface Inheritance).
3.Encapsulation/Data Hiding.
4.Primitive Wrappers.
5.Abstraction.
Although above points make it to a good candidate to Pure Object Oriented Programming Language , Multiple Class Inheritance(Not supported in java) , Primitives (int,char,short,long etc) prevents it to become pure OO programming language.
No comments:
Post a Comment