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

hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1751


What is pure oop?

864


what is the drawback of classical methods in oops?

3127


What is abstraction oop?

837


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1904


Can private class be inherited?

920


Can we create object of interface?

852


What is the purpose of polymorphism?

888


Why is there no multiple inheritance?

778


What are the 4 main oop principles?

951


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1845


What is inheritance and how many types of inheritance?

829


What is polymorphism and types?

854


What is the real time example of encapsulation?

805


What is difference between pop and oop?

823