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

Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

0 Answers  


why all c++ program must have default constructor?

6 Answers   IBM,


What are the classes in c++?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

4 Answers   Webyog,


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

0 Answers  






What things would you remember while making an interface?

0 Answers  


What is difference between class and function?

0 Answers  


sir i want to study the c++ course but ino what is the qualification and the study methode please reply more details in c++

1 Answers   NIIT,


What is volatile and pragma? When they are used?

1 Answers  


what is upcasting in C++?

0 Answers  


Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }

2 Answers   CDAC, Wipro,


Explain the uses oof nested class?

0 Answers  


Categories