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 |
Why is c++ not purely object oriented?
What is a singleton c++?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.
What is a far pointer? where we use it?
Where can I run c++ program?
What do you know about near, far and huge pointer?
Explain how we implement exception handling in c++?
Why c++ is faster than java?
what are the decision making statements in C++? Explain if statement with an example?
Explain what are single and multiple inheritances in c++?