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
How to declare a pointer to an array of integers?
What is DlgProc?
What are the differences between java and c++?
What are structures and unions?
Do class declarations end with a semicolon?
Differences between private, protected and public and give examples.
What is flush programming?
What are the stages in the development cycle?
What do you mean by inheritance in c++?
Does a derived class inherit or doesn't inherit?
How the keyword struct is different from the keyword class in c++?
What is an iterator?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Can constructor be static in c++?
What is the main purpose of overloading operators?