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
How can you differentiate between inheritance and implementation in c++?
What is difference between c++ 11 and c++ 14?
How to demonstrate the use of a variable?
How should runtime errors be handled in c++?
What is the difference between global int and static int declaration?
Is c++ a high level language?
If a function doesn’t return a value, how do you declare the function?
Explain container class.
What is increment operator in c++?
Can member data be public?
What are default parameters? How are they evaluated in c++ function?
What is the benefit of learning c++?
How to access a variable of the structure?
What should main() return in c and c++?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()