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 is a memory leak c++?

1073


Explain linked list using c++ with an example?

1030


Difference between Abstraction and encapsulation in C++?

1083


Describe the advantage of an external iterator.

994


Write a struct time where integer m, h, s are its members?

921


Describe Trees using C++ with an example.

1099


Write a c program for binary addition of two 8 bit numbers.

4072


Why do we need templates?

953


What is do..while loops structure?

1094


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1021


What does new do in c++?

1029


What does obj stand for?

1102


What is the advantage of an external iterator.

985


What is the disadvantage of using a macro?

1059


What is a hash function c++?

1032