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 / ravi kumar jain

The difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.The
difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How did c++ get its name?

1084


Explain terminate() function?

1107


Can recursive program be written in C++?

1269


What is the maximum combined length of command line arguments including the space between adjacent arguments?

1039


Explain about vectors in c ++?

1082


What do you mean by a template?

1115


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1123


What is the exit function in c++?

1027


What are the advantages of prototyping?

1128


What are pointer-to-members? Explain.

1223


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

1259


What is operators in c++?

1055


What are the classes in c++?

1156


What is object in c++ wikipedia?

1063


How can an improvement in the quality of software be done by try/catch/throw?

1140