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
Why is polymorphism used?
what is different between oops and c++
What is protected in oop?
What is polymorphism in oops with example?
What is class and object in oops?
What is an interface in oop?
can we make game by using c
Can you explain polymorphism?
What are the three parts of a simple empty class?
What causes polymorphism?
What is the types of inheritance?
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 abstraction in oops?
What is the difference between abstraction and polymorphism?
write a C++ program for booking using constructor and destructor.