What is the difference between Class and Structure?
Answer Posted / sharad
in c++ structure and class are same. we can use the
structure in place of class for creating the object. but
the difference is only the default access specifier of the
class is private and public of the structure.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are inline functions? What is the syntax for defining an inline function?
Write some differences between an external iterator and an internal iterator?
What parameter does the constructor to an ofstream object take?
Why c++ is faster than java?
Explain the extern storage classes in c++.
What is setw manipulator in c++?
What is the full form of india?
What is the difference between a declaration and a definition?
What is general form of pure virtual function? Explain?
Why is standard template library used?
What is the use of c++ programming language in real life?
Write about the access privileges in c++ and also mention about its default access level?
Can constructor be static in c++?
How to declaring variables in c++?
Tell me can a pure virtual function have an implementation?