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
write a program that takes input in digits and display the result in words from 1 to 1000
What does enum stand for?
What is oops and why we use oops?
What is abstraction with example?
What is a null tree?
What is the highest level of cohesion?
Can private class be inherited?
Which language is pure oop?
What are the two different types of polymorphism?
Where You Can Use Interface in your Project
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
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Why multiple inheritance is not allowed?
What are different oops concepts?
What is new keyword in oops?