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
What are the benefits of interface?
How oops is better than procedural?
Whats is abstraction in oops?
What is object in oop with example?
Advantage and disadvantage of routing in telecom sector
What is polymorphism and its types?
What is the problem with multiple inheritance?
What is encapsulation in simple terms?
Where You Can Use Interface in your Project
What is abstraction in oops with example?
What is abstraction in oop with example?
What is the fundamental idea of oop?
What are properties in oop?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is encapsulation oop?