What is the difference between Class and Structure?
Answer Posted / vadivel
i. Structure are value type where as class are reference
type.
ii. Structure are default public where as class are default
private.
iii. 'this' pointer will work only in class.
| Is This Answer Correct ? | 395 Yes | 78 No |
Post New Answer View All Answers
Which is best ide for c++?
What are the various situations where a copy constructor is invoked?
What is a namespace in c++?
What are protected members in c++?
What is object in c++ wikipedia?
Tell me what are static member functions?
Why ctype h is used in c++?
What is the sequence of destruction of local objects?
What is type of 'this' pointer? Explain when it is get created?
Explain how a pointer to function can be declared in C++?
Write a program to show polymorphism in C++?
How would you use the functions randomize() and random()?
Why are pointers used?
What is size of string in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *