What is the difference between Class and Structure?
Answer Posted / sharad
in c++ structure and class are same. we can use the
structure in place of class for creating the object. but
the difference is only the default access specifier of the
class is private and public of the structure.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Which programming language is best to learn first?
How are virtual functions implemented in c++?
What is operators in c++?
Why pointer is used in c++?
What is the difference between object-oriented programming and procedural programming?
How do you traverse a btree in backward in-order?
Explain the volatile and mutable keywords.
What's the order in which the local objects are destructed?
Which sort does c++ use?
What is a storage class?
Is set c++?
What is == in programming?
What are manipulators used for?
What is the main purpose of c++?
How would you find out if a linked-list is a cycle or not?