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
What are the three parts of a simple empty class?
What is overloading and its types?
What is overriding in oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.
Can an interface inherit a class?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
Why is oop useful?
What is balance factor?
Why is object oriented programming so hard?
Why do we need oop?
Give two or more real cenario of virtual function and vertual object
Why do pointers exist?
Can we have inheritance without polymorphism?
what is difference between class template and template class?
Can bst contain duplicates?