What is the difference between Class and Structure?
Answer Posted / ali abbas khan
structure is contain data member and class is contain member function
structure have by default public and class have by default privat
structure can't have inheritance and class can have inheritance
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
When can I use a forward declaration?
What are the different types of comments allowed in c++?
How do I use turbo c++?
Define virtual constructor.
Where can I run c++ program?
Explain unexpected() function?
Differences between private, protected and public and give examples.
What is the difference between a reference and a pointer?
What is vector string in c++?
Explain the difference between static and dynamic binding of functions?
How come you find out if a linked-list is a cycle or not?
What does extern mean in a function declaration in c++?
Can member functions be private?
What do you mean by funtion prototype?
Define a constructor - what it is and how it might be called (2 methods)?