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


Please Help Members By Posting Answers For Below Questions

Why is polymorphism important in oop?

611


What is abstraction in oop?

608


What is the importance of oop?

588


How do you achieve runtime polymorphism?

550


What is the difference between static polymorphism and dynamic polymorphism?

554






What is encapsulation and abstraction? How are they implemented in C++?

611


What is difference between abstraction and encapsulation?

565


What are the data types in oop?

581


What exactly is polymorphism?

581


Get me a number puzzle game-program

1674


Can we define a class within the interface?

535


What are two types of polymorphism?

586


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1398


What is polymorphism and types?

579


What is overriding in oops?

573