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
Can you inherit a private class?
Why is oop useful?
Why do we use oops?
What are functions in oop?
What is polymorphism explain?
#include
What does enum stand for?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is abstract class in oops?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Give two or more real cenario of virtual function and vertual object
What is a superclass in oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
Is oop better than procedural?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?