What is the difference between Class and Structure?
Answer Posted / suresh ghosh
1.class by default used private access specifier but structure used public.
2.class is reference type but structure is value type.
3.class used stack algorithm but structure used heap algorithm.
4.structure don't used public access specifier.
5.class used inheritance but structure don't.
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
What is type of 'this' pointer?
Give an example of run-time polymorphism/virtual functions.
Write a program which uses functions like strcmp(), strcpy()? etc
Define basic type of variable used for a different condition in C++?
Is ca high or low level language?
Define a nested class. Explain how it can be useful.
What is the use of c++ programming language in real life?
Write about an iterator class?
Explain the isa and hasa class relationships. How would you implement each?
What do you mean by ‘void’ return type?
How do you establish an is-a relationship?
Can you explicitly call a destructor on a local variable?
How would you use the functions randomize() and random()?
What is an adaptor class in c++?
Which compiler does turbo c++ use?