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
Please explain class & object in c++?
Do vectors start at 0 c++?
What is doubly linked list in c++?
Why do we use structure in c++?
Write a program in C++ for Fibonacci series
Eplain extern keyword?
What are shallow and deep copy?
How can you create a virtual copy constructor?
What is iterator in c++?
What's the hardest coding language?
Is dev c++ a good compiler?
Why is standard template library used?
Why namespace is used in c++?
Write a struct time where integer m, h, s are its members?
What is & in c++ function?