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

Will a catch statement catch a derived exception if it is looking for the base class?

0 Answers  


What is an operator in c++?

0 Answers  


How can you tell what shell you are running on unix system?

0 Answers  


Who made c++?

0 Answers  


What is abstract keyword in c++?

0 Answers  


Write a program which uses functions like strcmp(), strcpy()? etc

0 Answers  


Is c++ a pure oop language?

0 Answers  


What kind of problems can be solved by a namespace?

0 Answers  


which is the easy way to divide any integer by 2?

2 Answers   Persistent,


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

0 Answers  


What are the conditions that have to be met for a condition to be an invariant of the class?

1 Answers  


Is c++ the hardest programming language?

0 Answers  


Categories