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 Class and Structure?

Answer Posted / vandana mishra

Class is much broader,real world applicable 1-1-1: concept whereas structure is a primitive concept with poor internal organisation.
2: structure contains only data while class bind both data & member functions.
3: class provide data hiding,inheritance etc but structure didn't.
4: if we not define constructor in class there constructor automaticly invoke but in structure it does not happen automaticly.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discussion on error handling of C++ .

1133


Do you know about latest advancements in C++ ?

1262


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

991


What are the benefits of oop in c++?

1246


What is the insertion operator and what does it do?

1059


What is the full form nasa?

1120


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

1021


How can we read/write Structures from/to data files?

1142


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2401


Is java a c++?

1055


What is c++ runtime?

1122


What are the advantages of using typedef in a program?

1158


Difference between overloaded functions and overridden functions

1076


When do we run a shell in the unix system? How will you tell which shell you are running?

993


What are the methods of exporting a function from a dll?

1240