ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  C++ General
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
In a class only declaration of the function  is there but
defintion is not there then what is that function?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: In a class only declaration of the function is there but defintion is not there then what is that function?
Answer
# 1
virtual function
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: In a class only declaration of the function is there but defintion is not there then what is that function?
Answer
# 2
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 ?    0 Yes 0 No
Santhi
 
 
 
  Re: In a class only declaration of the function is there but defintion is not there then what is that function?
Answer
# 3
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 ?    0 Yes 0 No
Bharat
 
  Re: In a class only declaration of the function is there but defintion is not there then what is that function?
Answer
# 4
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 ?    0 Yes 0 No
Manju
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
why we cant create array of refrences  2
How do you link a C++ program to C functions?  2
Explain the ISA and HASA class relationships. How would you implement each in a class design?  2
Can we have "Virtual Constructors"? TCS5
What are advantages of C++ when comparing with C? HP3
What is "map" in STL?  1
what is pulse code modulation? Wipro1
When to use Multiple Inheritance?  4
Memory is not a constraint. In a single iteration(NOTE: you can't go back), how will you find out the 10th last node/item in a linked list. Goldman-Sachs8
What is design pattern? Samsung2
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast Quark1
Find the second maximum in an array? HCL2
In C++ cout is: a) object b) class c) something else Lehman-Brothers10
Difference between Overloading and Overriding? HP4
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?  1
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Lucent3
What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++? Intel1
How to change constant values? Symphony3
Have you used MSVC? What do you think of it? Google2
What is "mutable" keyword?  2
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com