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 does enum stand for?
What is encapsulation process?
program for insertion ,deletion,sorting in double link list
What do you mean by Encapsulation?
What is the main purpose of inheritance law?
What polymorphism means?
Which is not an object oriented programming language?
What is the oops and benefits of oops programming?
What is the difference between a constructor and a destructor?
Is data hiding and abstraction same?
What is polymorphism programming?
What is abstraction example?
Give two or more real cenario of virtual function and vertual object
Is react oop?
Why do pointers exist?