What is the difference between Class and Structure?
Answer Posted / lucky
1) classes can have data member as well as member function but structure is a data type which can have data member only.
| Is This Answer Correct ? | 40 Yes | 31 No |
Post New Answer View All Answers
What is a singleton c++?
Is c++ map a hash table?
How the delete operator differs from the delete[]operator?
Discussion on error handling of C++ .
Explain unexpected() function?
Differentiate between a template class and class template in c++?
Is rust better than c++?
What is data hiding c++?
Why do we use double in c++?
Explain the different access specifiers for the class member in c++.
What is the best way to declare and define global variables?
What are register variables?
What is a constructor in c++ with example?
What is data type in c++?
What methods can be overridden in java?