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
Name four predefined macros.
What are formatting flags in ios class?
What does it mean to declare a destructor as static?
What is vector string in c++?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
What is the exit function in c++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What are proxy objects in c++?
Difference between Abstraction and encapsulation in C++?
What is anonymous object in c++?
Explain how to initialize a const member data.
Which is not a valid keyword a) public b) protected c) guarded
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What is long in c++?