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


Please Help Members By Posting Answers For Below Questions

Why is polymorphism used?

586


what is different between oops and c++

2004


What is protected in oop?

604


What is polymorphism in oops with example?

533


What is class and object in oops?

611






What is an interface in oop?

595


can we make game by using c

3429


Can you explain polymorphism?

583


What are the three parts of a simple empty class?

1462


What causes polymorphism?

577


What is the types of inheritance?

604


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

1698


What is abstraction in oops?

589


What is the difference between abstraction and polymorphism?

617


write a C++ program for booking using constructor and destructor.

2051