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++?



What is the difference between a class and a structure in C++?..

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

More C++ General Interview Questions

Can turbo c++ run c program?

0 Answers  


why can't we declare data member of class auto register or extern

1 Answers  


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

0 Answers  


What is the difference between structure and class?

0 Answers  


What is long in c++?

0 Answers  


Declare a class vehicle and make it an abstract data type.

0 Answers  


What is anonymous object in c++?

0 Answers  


Difference between linked list and array?

3 Answers  


When do we use copy constructors?

0 Answers  


State two differences between C and C++.

0 Answers   Hexaware,


class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.

5 Answers   Quark,


What is the need of a destructor? Explain with the help of an example.

0 Answers  


Categories