What is the difference between C++ and java?
Answer Posted / ramakrishna yechuri
c++ is not purely object oriented language.
becoz when ever u say a purely object oriented everything
should be written inside the class.
In c++ u can write member functions outside the class also.
2) Though u declare a variable with private access
specifier i can access outside the main function with the
help of friend function.
Java is 99% object oriented.
purely object oriented means there should not be any
primitative data types.
java contains primitive data types.
| Is This Answer Correct ? | 13 Yes | 6 No |
Post New Answer View All Answers
Can you inherit a private class?
what are the realtime excercises in C++?
What is polymorphism explain?
What is encapsulation example?
What is an interface in oop?
What is inheritance in oop?
What is advantage of inheritance?
What is the purpose of enum?
What is static in oop?
Why is static class not inherited?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is oops and its features?
Which type does string inherit from?
Why is object oriented programming so hard?
Why do we use inheritance?