What are the differences between a struct and a class in
C++?

Answer Posted / rajesh

shivani is wrong bec. structure is not inherited.

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the programmer of a class should decide whether to declare member function or a friend function?

690


What is the difference between a "copy constructor" and an "assignment operator" in C++?

627


Why is c++ is better than c?

523


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

710


What is Destructor in C++?

645






How do you save a c++ program?

570


What is bubble sort c++?

584


What is the full form of dos?

573


How java is different from c and c++?

658


What is the best c++ book for beginners?

583


How we can differentiate between a pre and post increment operators during overloading?

602


What is an html tag?

636


Explain the isa and hasa class relationships. How would you implement each?

622


Write a note about the virtual member function?

613


What are the types of container classes?

626