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 multimap sorted c++?

1008


what is a reference variable in C++?

1241


What is conditions when using boolean operators?

1236


What is a c++ class?

1100


What is dynamic and static typing?

1192


What is the use of default constructor?

1099


When is the copy constructor called?

1146


how to access grid view row?

2241


What is the difference between equal to (==) and assignment operator (=)?

1079


How is data hiding achieved in c++?

1082


Explain the uses oof nested class?

1141


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

1029


What is string in c++ programming?

1194


Should I learn c++ c?

1054


Why c++ does not have finally?

1085