What is the difference between Class and Structure?
Answer Posted / deepica
in classes we can declare variables and functions while in structure we can have only functions.In classes we have ACCESS SPECIFIER,while in structures we dont have any.Ic classes no Keyword is used ,while in Structures STRUCT keyword is used.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
program explaining feautures of c++
What is the advantage of an external iterator.
What is general format for a prototype?
Can a new be used in place of old mallocq? If yes, why?
Why do we need runtime polymorphism in c++?
What are the uses of c++ in the real world?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What is pure virtual function? Or what is abstract class?
What is virtual base class?
Explain the operation of overloading of an assignment operator.
What is the need of a destructor?
Can a program run without main?
How do you decide which integer type to use?
What is a catch statement?
What is the C-style character string?