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 does count ++ do in c++?
Explain what are mutator methods in c++?
What is late binding c++?
What is the basic structure of a c++ program?
Explain the operation of overloading of an assignment operator.
What is c++ vb?
What are the uses of pointers?
Define virtual constructor.
What is the best c++ compiler for windows 10?
What is dev c++ used for?
Which one is a preferred language C or C++? Why?
Write my own zero-argument manipulator that should work same as hex?
Describe private, protected and public?
What are put and get pointers?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?