what isthe difference between c structure and c++ class
Answers were Sorted based on User's Feedback
Answer / harshad khedekar
c does not allow struct data type to be treated like built-in datatype also it does not supports data hiding concept.in c++ instead of struct we have class which overcomes all the above limitations.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / jeremiah
The default scope of a C struct is public, whearas the
default scope of a C++ class is private.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / amarnath
Construtor is not in c strut and present in c++ class
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / a.sivasakthi
c structure are only define the data and data types
C++ class are define the data and solve the function the
both process are solved to the c++ class
| Is This Answer Correct ? | 0 Yes | 4 No |
What is the expansion of OOPS?
what is data hiding.
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is memory leak and memory corruption?
What is the renewal class?
What is super in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is destructor oops?
Which keyword is written to use a variable declared in one class in the other class?
Why is there no multiple inheritance?
What is difference between #define and const?
Why polymorphism is used in oops?