What is the difference between class and structure?
Answer Posted / arvind
The main difference is
Structure ... Class
struct . Class
{ . {
data members ... data members
} ... +
... Member functions
... }
We can't define Functions inside structure where as in class we can define inside
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Give two or more real cenario of virtual function and vertual object
What are benefits of oop?
What is a superclass in oop?
What is difference between polymorphism and inheritance?
How does polymorphism work?
What is difference between multiple inheritance and multilevel inheritance?
What is and I oop mean?
What is inheritance write a program to show use of inheritance?
What is abstract class in oop?
What is the types of inheritance?
What is object in oops?
What is balance factor?
• What are the desirable attributes for memory managment?
Why do we use inheritance?
Why it is called runtime polymorphism?