What is the difference between Class and Structure?

Answer Posted / rakesh kumar

structure can not be declare privately but class can be
declared public as well as private.In structure data member
and member function are public by default and in class
these are private by default

Is This Answer Correct ?    59 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about Virtual Function in C++?

604


Explain how we implement exception handling in c++?

571


What does scope resolution operator do?

590


What is class invariant in c++?

738


What is the use of endl?

539






Why c++ is not a pure oop language?

551


What is functions syntax in c++?

613


What's the "software peter principleā€?

616


What is wrapper class in c++?

624


What is protected inheritance?

592


What are disadvantages of pointers?

561


Write about the members that a derived class can add?

564


What is the c++ programming language used for?

579


Differentiate between a template class and class template in c++?

624


Does c++ cost money?

577