Describe what an Interface is and how it?s different from a
Class.
Answer Posted / nishikant sahu
Class can hold both member function and data, depending upon
the member function class becomes abstract class and etc.
but if a class contain only pure virtual function then it
becomes "Interface",remember all functions should be pure
having no data member.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Why do we use oop?
Why we use classes in oop?
Why do we use polymorphism in oops?
What are the benefits of oop?
How oops is better than procedural?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is pure oop?
What are the 3 principles of oop?
What is class and object with example?
Can a destructor be called directly?
What are oops functions?
Why oops is important?
Are polymorphisms mutations?
What is oops in simple words?
What is oops and its features?