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 is the difference between inheritance and polymorphism?
what is the sylabus for priliminaries?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
what type of question are asked in thoughtworks pair programming round ?
How do you answer polymorphism?
What is variable example?
What is oops in simple words?
What is an example of genetic polymorphism?
Why multiple inheritance is not possible?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is stream in oop?
What does sksksk mean in text slang?
What do you mean by overloading?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.