In a class only declaration of the function is there but
defintion is not there then what is that function?

Answer Posted / bharat

If a function does't have definition is a pure virtual
function . The class which have the pure virtual function is
called as Abstract Class or Interface.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write about the scope resolution operator?

778


What is anonymous object in c++?

837


Why namespace is used in c++?

783


What is a binary file? List the merits and demerits of the binary file usagein C++.

947


What are vtable and vptr?

858


What is the need of a destructor?

858


Why #include is used?

796


What is polymorphism and its type in c++?

780


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

874


What is static function? Explain with an example

804


What are special characters c++?

736


Should a constructor be public or private?

745


Is c++ a programming language?

796


How is c++ used in the real world?

776


How do you differentiate between overloading the prefix and postfix increments?

799