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

Define stacks. Provide an example where they are useful.

0 Answers  


What is a singleton class c++?

0 Answers  


Why is c++ difficult?

0 Answers  


How can a struct in c++ differs from a struct in c?

0 Answers  


What is the Difference between "vector" and "array"?

15 Answers   Covansys, Gambit, TCS, Wipro,


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

0 Answers  


What is late binding c++?

0 Answers  


Differences between private, protected and public and give examples.

0 Answers  


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

3 Answers   Google, Subex,


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

1 Answers  


Describe the role of the c++ in the tradeoff of safety vs. Usability?

0 Answers  


Difference between an inspector and a mutator

0 Answers  


Categories