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
What is an iterator class in c++?
How long will it take to learn programming?
What is c++ runtime?
what is C++ exceptional handling?
Can I learn c++ without c?
Which operations are permitted on pointers?
Is c++ proprietary?
What can c++ be used for?
What is the latest version on c++?
What are the uses of c++ in the real world?
Is turbo c++ free?
What is function prototyping? What are its advantages?
List the advantages of inheritance.
What is c++ code?
what are the iterator and generic algorithms.