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
Which is better struts or spring?
Write a c++ program to display pass and fail for three student using static member function
officer say me - i am offered to a smoking , then what can you say
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How is polymorphism achieved?
What is class encapsulation?
How to improve object oriented design skills?
Why do we use encapsulation in oops?
What is abstraction example?
How do you define social class?
What are functions in oop?
What is difference between inheritance and polymorphism?
What is oops and why we use oops?
What does and I oop mean?
Why is polymorphism needed?