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

Answers were Sorted based on User's Feedback



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

Answer / guest

virtual function

Is This Answer Correct ?    4 Yes 1 No

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

Answer / santhi

abstract functions
if u specify any function as abstract,there itself in it's
home class u can't find solution,u have to define those
function in the later derived classes through inheritance.

Is This Answer Correct ?    3 Yes 0 No

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

Answer / manju

In a class only declaration of function is there but
definition is not there then such functions are called as
abstract functions.

Is This Answer Correct ?    3 Yes 1 No

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

Answer / 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

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

Answer / sahasra

We can call it as the interface also in case of java,where
the interface contains only definiton where as
implementation is in other classes which are implemented
this interface

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

0 Answers  


What are the vectors in c++?

0 Answers  


How much is c++ certification?

0 Answers  


What is enum class in c++?

0 Answers  


write a program in c++ to implement stack using functions in header file stack.h

3 Answers   Google, Subex,






How would perform Pattern Matching in C++?

0 Answers   Genpact,


Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?

6 Answers   CSC,


What is the use of main function in c++?

0 Answers  


Is it possible for the objects to read and write themselves?

0 Answers  


explain the reference variable in c++?

0 Answers  


Why do we use classes in programming?

0 Answers  


What is an inclusion guard?

0 Answers  


Categories