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 is the 3 types of system development life cycle

2429


What is overriding in oop?

544


What is data binding in oops?

576


What is polymorphism programming?

593


Can we create object of interface?

597






Who invented oop?

644


Why is destructor used?

575


What is the difference between inheritance and polymorphism?

581


Can we have inheritance without polymorphism?

604


What makes a language oop?

590


What is inheritance in simple words?

617


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1570


What is property in oops?

559


Which method cannot be overridden?

572


Why multiple inheritance is not allowed?

581