+ 2

We cannot run a program without making a class in java....but we can do it in c++. Why?

15th Aug 2017, 6:21 AM
Harsh Wellengsly
Harsh Wellengsly - avatar
2 Answers
+ 17
JAVA is a pure object oriented language which means it works on classes and objects. whereas C++ is object oriented language with having features of C language which means it can work on classes and objects but it can work without classes too as in C language there is no concept of classes and objects
15th Aug 2017, 6:40 AM
Mansi Dagla
Mansi Dagla - avatar
+ 11
This is because C++ is a hybrid language which supports several programming paradigms, such as procedural, object-oriented, and generic. In comparison, Java is fully OOP.
15th Aug 2017, 6:28 AM
Hatsy Rei
Hatsy Rei - avatar