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

Why do we use string in c++?

0 Answers  


pls help.. paper bills.. 1000, 500, 100, 50, 20, 10, 5, 1.. create a program that will count all the paper bills in the number being input.. example: enter a number: 3886 there is/are: 3 ->1000 1 ->500 3 ->100 1 ->50 1 ->20 1 ->10 1 ->5 1 ->1 example2: enter a number: 728 there is/are: 0 ->1000 1 ->500 2 ->100 0 ->50 1 ->20 0 ->10 1 ->5 3 ->1

4 Answers  


What is cloning?

1 Answers  


In a function declaration what does extern means?

0 Answers   Flextronics,


What are the operators in c++?

0 Answers  


Is it possible to have a recursive inline function in c++?

0 Answers  


Name four predefined macros.

0 Answers  


What is runtime errors c++?

0 Answers  


write a program to insert an element into an array

26 Answers   TCS,


Is c++ harder than java?

0 Answers  


Is c++ a programming language?

0 Answers  


What is purpose of abstract class?

0 Answers  


Categories