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

What is polymorphism in oops?

554


Where You Can Use Interface in your Project

1420


What is destructor give example?

595


Advantage and disadvantage of routing in telecom sector

780


2. Give the different notations for the class.\

1584






What is polymorphism in oops with example?

525


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1650


Can static class have constructor?

580


Can enum be null?

581


What is the types of inheritance?

594


How do you explain polymorphism?

582


What does enum stand for?

605


Can bst contain duplicates?

663


What are the 4 main oop principles?

675


What is static modifier?

627