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 is polymorphism important in oop?
What is abstraction in oop?
What is the importance of oop?
How do you achieve runtime polymorphism?
What is the difference between static polymorphism and dynamic polymorphism?
What is encapsulation and abstraction? How are they implemented in C++?
What is difference between abstraction and encapsulation?
What are the data types in oop?
What exactly is polymorphism?
Get me a number puzzle game-program
Can we define a class within the interface?
What are two types of polymorphism?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is polymorphism and types? What is overriding in oops?