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
Why do we use class?
How to hide the base class functionality in Inheritance?
Who invented oop?
What is a function in oop?
What is inheritance in oop?
program for insertion ,deletion,sorting in double link list
2. Give the different notations for the class.\
What is persistence in oop?
What is oops concept with example?
What are the two different types of polymorphism?
Why do we use oop?
what type of question are asked in thoughtworks pair programming round ?
What is the benefit of oop?
any one please tell me the purpose of operator overloading
What are oops methods?