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

What are signs of manipulation?

1067


Difference between pass by value and pass by reference?

1150


Which function should be used to free the memory allocated by calloc()?

1024


What is the insertion operator and what does it do?

1046


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

1377


What it is and how it might be called (2 methods).

1182


What is the sequence of destruction of local objects?

980


How can you link a c++ program to c functions?

1103


Why is c++ still popular?

1046


What are static type checking?

1050


What is size_type?

1045


What does it mean to declare a member variable as static?

1057


When should we use container classes instead of arrays?

1020


What is general form of pure virtual function? Explain?

996


What is a singleton class c++?

1035