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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is overloading and how can this be done ?
 Question Submitted By :: Deepa
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is overloading and how can this be done ?
Answer
# 1
Overloading is the process of call the same method with 
different parameter types,diferent order of parameters with 
in the class.Its also applicable for the constructor.

here i give some example

class sample
{
 public void display()
 {
   Console.WriteLine("display :1");
 }
 public  void (int i,int j)
 {
  int s=0;
  s = i+j; 
  Console.WriteLine("Result :"+s);
 }
}

class Overload
{
 public static void Main(string []args)
 {
  sample s = new sample();
  s.display();
  s.display(5,5);
 }
}
 
Is This Answer Correct ?    0 Yes 0 No
Senthil Kumar
 
  Re: What is overloading and how can this be done ?
Answer
# 2
Overloading is the process of call the same method with 
different parameter types,diferent order of parameters with 
in the class.Its also applicable for the constructor.

here i give some example

class sample
{
 public void display()
 {
   Console.WriteLine("display :1");
 }
 public  void display(int i,int j)
 {
  int s=0;
  s = i+j; 
  Console.WriteLine("Result :"+s);
 }
}

class Overload
{
 public static void Main(string []args)
 {
  sample s = new sample();
  s.display();
  s.display(5,5);
 }
 
Is This Answer Correct ?    0 Yes 0 No
Rashid
 
 
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
When static constructor is invoked? TCS3
How to run the program at particular time? It should run everyday at 3:00 PM. After executing the program should sleep until next day at 3:00 PM. Please explain with code? Wipro2
About Virtual functions and their use ? MMTS6
What is the difference between directcast and ctype? Wipro2
Why we can't create the object of abstract class ? IBM5
Is XML case-sensitive?  2
Where is the output of TextWriterTraceListener redirected?  1
coding for delegates? Tech-Mahindra3
what is a template? Choice-Solutions1
How do you inherit from a class in C#?  1
Why would you use untrusted verificaion?  1
Is it possible to implement an interface to a structure? Is it possible to extend a struct? Is it possible to inherit a class to struct? TCS5
What?s a multicast delegate?  1
What are Sealed Classes in C#?  5
What does the keyword virtual mean in the method definition?  1
What?s an interface class?  1
What is the Difference between a sub and a function? Wipro3
What does assert() do? Wipro1
Can you inherit multiple interfaces? Mind-Tree3
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?  2
 
For more C Sharp 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