What is the difference between Class and Structure?

Answer Posted / shiva

we create an object for class.but not creating for structure

Is This Answer Correct ?    3 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are disadvantages of pointers?

563


What is meant by the term name mangling in c++?

514


What is java and c++?

658


What are the benefits of c++?

565


Explain the use of this pointer?

634






If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

634


What is atoi in c++?

562


Why do we need pointers?

577


Why is c++ is better than c?

514


What are 2 ways of exporting a function from a dll?

609


Can malloc be used in c++?

566


Why is standard template library used?

577


If a function doesn’t return a value, how do you declare the function?

610


What is a linked list in c++?

540


How is static data member similar to a global variable?

576