What is the difference between Class and Structure?
Answer Posted / riyaz
Class Can be abstract but structure can't
Class support inheritance but sturcutre can't
Class allows modifiers such as public,private but structure by default allow public
Class can used for huge amount of data, structure is for limited amount of data
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is &x in c++?
What is oop in c++?
What is the purpose of templates in c++?
What should main() return in c and c++?
Which is better c++ or java?
How do you define a class in c++?
What is pointer to member?
Define pure virtual function?
What is buffer and example?
What is a binary file? List the merits and demerits of the binary file usagein C++.
Is c++ free?
Can we change the basic meaning of an operator in c++?
What are iterators in c++?
What is iostream in c++ used for?
Why we use #include iostream in c++?