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

Answer Posted / naveen tuteja

A structure can't contain the static ans constant variable
but a class can contain both.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create object of abstract class?

575


What is protected in oop?

602


How do you use inheritance in unity?

588


What is destructor give example?

601


What is the types of inheritance?

600






Prepare me a program for the animation of train

1994


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1789


What are the benefits of oop?

604


write a program that takes input in digits and display the result in words from 1 to 1000

1985


What is class and object in oops?

607


What is object in oop with example?

695


is there any choice in opting subjects like 4 out of 7

1727


What is pure oop?

597


How do you achieve runtime polymorphism?

569


Why is destructor used?

581