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 polymorphism means?
What is the oops and benefits of oops programming?
What is object-oriented programming? Webopedia definition
How do you achieve polymorphism?
What is overriding in oop?
What is difference between oop and pop?
Can you inherit a private class?
Can bst contain duplicates?
What is abstraction in oops with example?
What is encapsulation in simple terms?
What is byval and byref? What are differences between them?
Are polymorphisms mutations?
Can enum be null?
What are the 4 main oop principles?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?