What is the difference between Class and Structure?
Answer Posted / eshetu
1. IN STRUCTURE THE DATA MEMBER BY DEFAULT IS PUBLIC BUT IN
CLASS THE DATA MEMBER ARE PRIVATE.
2. THE STRUCTURE ONLY CONTAIN DATA MEMBER BUT CLASS CONTAIN
DATA MEMBER & MEMBER FUNCTION.
3.IN STRUCTURE THE STRUCTURE NAME CAN'T STAND ALONE.BUT THE
CLASS NAME CAN STAND ALONE.
Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
What is a dll entry point?
What is #include iostream?
Which programming language is best to learn first?
What is c++ w3school?
What is a volatile variable in c++?
Is java a c++?
Is c++ harder than java?
When should overload new operator on a global basis or a class basis?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Why do we use vector in c++?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Is swift better than c++?
What is jump statement in C++?
What is the identity function in c++? How is it useful?
Describe the role of the c++ in the tradeoff of safety vs. Usability?