What is the difference between Class and Structure?
Answer Posted / vinod
The difference between a class and a structure is that, by
default, all of the members of a class are private and also private,public and protected but in structure by
default, all of the members of a structure are public.
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
What is null pointer and void pointer and what is their use?
Which compiler does turbo c++ use?
What is code reusability in c++?
What is the difference between the functions memmove() and memcpy()?
Is c++ still being used?
Explain differences between new() and delete()?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
Do vectors start at 0 c++?
Where do I find the current c or c++ standard documents?
What is namespace & why it is used in c++?
Write about the local class and mention its use?
What is a sequence in c++?
Is c++ harder than java?
How const int *ourpointer differs from int const *ourpointer?
How can you say that a template is better than a base class?