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

What are the extraction and insertion operators in c++?

564


What are member functions used in c++?

562


What is a stack? How it can be implemented?

696


What will the line of code below print out and why?

330


What is std namespace in c++?

724






What is the difference between while and do while loop? Explain with examples.

602


What are punctuators in c++?

654


What is the average salary of a c++ programmer?

545


Write about the retrieval of n number of objects during the process of delete[]p?

576


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

679


What is stoi in c++?

704


What are the different types of polymorphism in c++?

591


What are register variables?

648


How do you generate a random number in c++?

605


What is abstraction in c++ with example?

564