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

What makes a language oop?

598


What is the real time example of inheritance?

643


What are main features of oop?

634


What is abstraction in oop?

636


What is the use of oops?

623






What is inheritance in simple words?

627


What is the types of inheritance?

604


Can we create object of interface?

607


What is coupling in oop?

600


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2763


What is the diamond problem in inheritance?

579


What is encapsulation process?

583


Can abstract class have normal methods?

615


What is object and example?

604


Can enum be null?

587