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 are the differences between a struct and a class in
C++?

Answer Posted / rsn

Hello Shivani,

I think both struct and class in C++ are quite the same
except for the fact that, members in struct are public by
default whereas they are private for class.
Moreover struct also supports inheritance,polymorphism
etc...etc...

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ pass by reference or value?

1122


What is setw manipulator in c++?

1124


What is data abstraction? How is it different from data encapsulation?

1045


Define private, protected and public access control.

1167


Explain the benefits of proper inheritance.

1190


Describe linked list using C++ with an example.

1123


Can we define function inside main in c++?

1071


What is lambda in c++?

1307


How do I make turbo c++ full screen?

1127


Is main a class in c++?

1048


Is facebook written in c++?

1051


How one would use switch in a program?

1116


Why is standard template library used?

1104


describe private access specifiers?

1314


How static variables and local variablesare similar and dissimilar?

1094