What is the differances between a abstract calss and
interface
Answer Posted / maria alex
An abstract class holds both method prototpypes and method
definitions also...But it is not in the case of
interface..It can contain only protypes.. It should be
defined only where it is implemented...
Is This Answer Correct ? | 20 Yes | 3 No |
Post New Answer View All Answers
What is difference between multiple inheritance and multilevel inheritance?
Can destructor be overloaded?
What is stream in oop?
What is interface? When and where is it used?
What is meant by multiple inheritance?
What is polymorphism give a real life example?
What is a null tree?
How do you use inheritance in unity?
can inline function declare in private part of class?
What are the 4 pillars of oop?
What does enum stand for?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is encapsulation and abstraction? How are they implemented in C++?
What is inheritance in simple words?
What are oops methods?