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 do you mean by abstraction?
What is difference between class and object with example?
What is polymorphism in oop example?
What is the significance of classes in oop?
Who invented oop?
#include
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is destructor give example?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
Can enum be null?
What is the full form of oops?
What is the benefit of oop?
What is stream in oop?
Why do while loop is used?
What is abstraction oop?