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 / navin

Structure: Initially (in C) a structure was used to bundle
different type of data types together to perform a
particular functionality. But C++ extended the structure to
contain functions also. The major difference is that all
declarations inside a structure are by default public.
Class: Class is a successor of Structure. By default all
the members inside the class are private.

Is This Answer Correct ?    182 Yes 55 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need runtime polymorphism in c++?

973


Describe the syntax of single inheritance in C++?

1021


Comment on c++ standard exceptions?

1039


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1018


What is a dynamic binding in c++?

903


What are disadvantages of pointers?

985


Explain linear search.

1003


What problems might the following macro bring to the application?

981


Will a catch statement catch a derived exception if it is looking for the base class?

962


What are the rules for naming an identifier?

1014


Is there any function that can skip certain number of characters present in the input stream?

1013


What does it mean to declare a destructor as static?

1017


Is c++ pass by reference or value?

1003


If I is an integer variable, which is faster ++i or i++?

1013


Give example of a pure virtual function in c++?

1085