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 a class and a structure in C++?

Answer Posted / nashiinformaticssolutions

With the exception of member variables and methods' default accessibility setting, class and structure (or struct) are essentially the same in C++. They are configured as public in a structure and private in a class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to get the source code back from binary file?

1363


How do you invoke a base member function from a derived class in which you’ve overridden that function?

1116


What is the use of structure in c++?

1039


What is a class template?

1084


What methods can be overridden in java?

1268


What is the basic concept of c++?

1013


Which programming language should I learn first?

1096


List down the guideline that should be followed while using friend function.

1072


Show the declaration for a pointer to function returning long and taking an integer parameter.

1138


What is setiosflags c++?

977


Is it possible for a member function to use delete this?

1080


When do we run a shell in the unix system?

1084


What is the meaning of string in c++?

1070


Can we use clrscr in c++?

1082


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

1034