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

What is difference between multiple inheritance and multilevel inheritance?

594


Can destructor be overloaded?

591


What is stream in oop?

833


What is interface? When and where is it used?

1656


What is meant by multiple inheritance?

729






What is polymorphism give a real life example?

551


What is a null tree?

620


How do you use inheritance in unity?

580


can inline function declare in private part of class?

3651


What are the 4 pillars of oop?

660


What does enum stand for?

605


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

1685


What is encapsulation and abstraction? How are they implemented in C++?

628


What is inheritance in simple words?

617


What are oops methods?

560