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
the first character in the variable name must be an a) special symbol b) number c) alphabet
Distinguish between a # include and #define.
Explain rethrowing exceptions with an example?
What do you mean by translation unit in c++?
What is the basic structure of a c++ program?
Can circle be called an ellipse?
What does I ++ mean in c++?
What are the extraction and insertion operators in c++? Explain with examples.
What is the function of I/O library in C++ ?
Is it possible for a member function to delete the pointer, named this?
What are manipulators in c++ with example?
Is there a c++ certification?
Do class method definitions?
Can a constructor return a value?
List the special characteristics of constructor.