Java is also not pure object-oriented like c++

Java 8Object Oriented ProgrammingProgrammingC++

the main() method in Java code is itself inside a class. The static keyword lets the main() method which is the entry point of execution without making an object but you need to write a class. In C++, main() is outside the class and writing class it self is not mandatory. Hence, C++ is not a pure object oriented language bu Java is a completely object oriented language.

raja
Published on 01-May-2018 14:33:39
Advertisements