what is the difference between class and structure in C++?

Answer Posted / vijayendra singh chand

The main difference between class and structure is that
class is reference type whereas structure is value type.

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between oop and pop?

609


What is encapsulation selenium?

552


What is multilevel inheritance?

719


What are different oops concepts?

568


What is a class oop?

588






What is the difference between static polymorphism and dynamic polymorphism?

575


What is polymorphism give a real life example?

557


which feature are not hold visual basic of oop?

1719


What is encapsulation in simple terms?

535


what is difference between class template and template class?

2153


What is polymorphism and example?

588


What are the advantages of polymorphism?

571


Why multiple inheritance is not allowed?

581


What is the real time example of inheritance?

633


What do you mean by overloading?

575