Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the three parts of a simple empty class?

2044


What is overloading and its types?

1159


What is overriding in oop?

1036


Plese get me a perfect C++ program for railway/airway reservation with all details.

3890


Can an interface inherit a class?

1052


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.

1239


Why is oop useful?

1095


What is balance factor?

1074


Why is object oriented programming so hard?

1071


Why do we need oop?

1182


Give two or more real cenario of virtual function and vertual object

2323


Why do pointers exist?

1085


Can we have inheritance without polymorphism?

1019


what is difference between class template and template class?

2656


Can bst contain duplicates?

1188