what is the difference between class and structure in C++?
Answer Posted / balaram singh
1->CLASS IS THE ADT WHERE AS STRUCTURE IS UDT
2->CLASS NEEDS ACCESS SPECIFIER SUCH AS PRIVATE,PUBLIC &
PRIVATE WHERE AS STRUCTURE MEMBERS CAN BE ACCESSED BY
PUBLIC BY DEFAULT & DO'NT NEED ANY ACCESIFIERS.
3->CLAAS IS OOPS WHERE STRUCTURE IS BORROWED FROM
TRADITIONAL STRUCTURED(POP) CONCEPT
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
What makes a language oop?
Why is oop useful?
any one please tell me the purpose of operator overloading
Can a destructor be called directly?
What is oops and its features?
What is the main purpose of inheritance law?
How long to learn object oriented programming?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Why is abstraction used?
What is inheritance write a program to show use of inheritance?
How Do you Code Composition and Aggregation in C++ ?
How to use CMutex, CSemaphore in VC++ MFC
What is polymorphism and types?
What is interface? When and where is it used?
What is polymorphism and its types?