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 is object in oop with example?
What are the three main types of variables?
Write a program to reverse a string using recursive function?
what type of question are asked in thoughtworks pair programming round ?
Is data hiding and abstraction same?
What are the benefits of polymorphism?
What is multilevel inheritance explain with example?
What is overriding vs overloading?
What does no cap mean?
What is the point of oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
#include
Explain virtual inheritance?
Why is polymorphism used?
What is polymorphism used for?