What is the difference between class and structure?
Answer Posted / mohan
By default the members of struct are public.
By default the members of class are priavte.
When an object is created to a class, constructor will be
called automatically.
But not in struct (if structure having member function with
structure name)
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
What are two types of polymorphism?
What are main features of oop?
What is the importance of oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is overriding in oops?
what is different between oops and c++
What is the fundamental idea of oop?
What are the benefits of polymorphism?
Which language is pure oop?
What are the important components of cohesion?
What polymorphism means?
What is oops with example?
What is abstraction in oop?
Why is there no multiple inheritance?
class type to basic type conversion