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
what is the 3 types of system development life cycle
What is overriding in oop?
What is data binding in oops?
What is polymorphism programming?
Can we create object of interface?
Who invented oop?
Why is destructor used?
What is the difference between inheritance and polymorphism?
Can we have inheritance without polymorphism?
What makes a language oop?
What is inheritance in simple words?
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?
What is property in oops?
Which method cannot be overridden?
Why multiple inheritance is not allowed?