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
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
If all is successful, what should main return a) 0 b) 1 c) void
Explain selection sorting?
Does c++ have finally?
Is java a c++?
What are the uses of typedef in a program?
What do you understand by pure virtual function? Write about its use?
Can user-defined object be declared as static data member of another class?
What is a container class? What are the types of container classes in c++?
What is using namespace std in cpp?
Can we sort map in c++?
What is purpose of abstract class?
What is long in c++?
what is Loop function? What are different types of Loops?
Why c++ is the best language?