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
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 |
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 |
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 |
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 |
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
why all c++ program must have default constructor?
What are the classes in c++?
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.
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.
What things would you remember while making an interface?
What is difference between class and function?
sir i want to study the c++ course but ino what is the qualification and the study methode please reply more details in c++
What is volatile and pragma? When they are used?
what is upcasting in C++?
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; }
Explain the uses oof nested class?