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 is overriding in oop?
What polymorphism means?
Which is better struts or spring?
How to hide the base class functionality in Inheritance?
when to use 'mutable' keyword and when to use 'const cast' in c++
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is overloading in oops?
How many human genes are polymorphic?
Advantage and disadvantage of routing in telecom sector
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is difference between data abstraction and encapsulation?
Why is polymorphism important in oop?
What is ambiguity in inheritance?