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
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
Why ctype h is used in c++?
Can you use the function fprintf() to display the output on the screen?
What is the cout in c++?
How is computer programming useful in real life?
Write some differences between an external iterator and an internal iterator?
What is the full form of dos?
Differentiate between the message and method in c++?
Comment on c++ standard exceptions?
How is c++ different from java?
What is unary operator? List out the different operators involved in the unary operator.
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is protected inheritance?
How is modularity introduced in C++?
What do you mean by function overriding & function overloading in c++?