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  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
different between overloading and overriding
 Question Submitted By :: Arun
I also faced this Question!!     Rank Answer Posted By  
 
  Re: different between overloading and overriding
Answer
# 1
Method overloading
done in same 
class but method overridng done in 
diff. Class here inheritance occure.
 
Is This Answer Correct ?    0 Yes 0 No
Rakurakesh
[Engineer]
 
  Re: different between overloading and overriding
Answer
# 2
Overriding - same method names with same arguments and same
return types associated in a class and its subclass. 
 
Overloading - same method name with different arguments, may
or may not be same return type written in the same class itself.
 
Is This Answer Correct ?    0 Yes 0 No
Rekha
 
 
 
  Re: different between overloading and overriding
Answer
# 3
Overloading:
Same function name but different arguments
Eg:
   A(int i);
   A(int i,float f);

Overriding:
refers to functions that have the same signature as a
virtual function in the base class:
class B {
virtual void V();
};

class D : public B {
viod V();
};
 
Is This Answer Correct ?    0 Yes 0 No
Pugalarasu
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is meant by c  4
disadvantages of realloc ? HCL1
biggest of two no's with out using if condition statement  2
Difference between null pointer and dangling pointer? Wipro3
Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures. Google3
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code???????? Apple2
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?  4
HOW CAN ADD OUR FUNCTION IN LIBRARY.  5
Give a fast way to multiply a number by 7 Microsoft8
main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf("%s",b);}  3
Will Macros support multiple arguments ? Oracle7
how we can make 3d venturing graphics on outer interface Microsoft1
There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.  2
Write a program to accept a character & display its corrosponding ASCII value & vice versa?  4
Program to trim a given character from a string. NetApp4
what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7 TCS2
What should be keep precautions while using the recursion method?  1
Concat two string with most overlapped substring has to remove  "abcd"+ "cdef" = "abcdef  5
what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>> TCS3
How to set a variable in the environment list?  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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