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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
what is Anonymous Method.? and 

What is shadowing?
 Question Submitted By :: Kkmca99
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is Anonymous Method.? and What is shadowing?
Answer
# 1
methods with no names are called as annonymous methods 

when two or more programing elements eg.a method  has same
name that of other then one method is hiden and has no
reference this is known as shadowing
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: what is Anonymous Method.? and What is shadowing?
Answer
# 2
Anonymous method - those method which does have any name and
type.. while declaration but its type is defined dynamically 
depending upon the type the method

for eg-
int n = 0;
Del d = delegate() { System.Console.WriteLine("Copy #:{0}",
++n); };


shadowing -  if two methods have the same name and
signature. we can  hide the scope of one method to access
another method
using  shadow keyword .

for eg -  we can use tostring() method in our program by 

Public Class Class2
	Inherits Class1
	Shadows Sub MethodA()
		MsgBox(“Method A Class2 called”)
	End Sub
	Overrides Sub MethodB()
		MsgBox(“Method B Class2 called”)
	End Sub
End Class
 
Is This Answer Correct ?    1 Yes 0 No
Kavitha
 
 
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
How?s method overriding different from overloading?  3
What’s the difference between System.String and System.Text.StringBuilder classes with example  2
What is use of super class NIIT2
what is a template? Choice-Solutions2
Difference between multi-level and multiple inheritance? Microsoft6
How To Maintain Transaction In C#? Phoenix-Technologies1
What?s the difference between the Debug class and Trace class?  1
What debugging tools come with the .NET SDK? CorDBG  1
Is IIS is required for installing the deployment of windows C#.netapplication and to run.  1
Can you override private virtual methods? Mind-Tree8
What namespaces are necessary to create a localized application?  2
use of operator overloading of implicit & explicit operators? TCS1
What does the term immutable mean? Techno-Labs2
What?s the difference between an interface and abstract class? Patni2
What are the ways to deploy an assembly? Visual-Soft2
what is CSharp  4
What?s an interface class?  4
An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differences. Synechron1
What is abstract class ? Digital-GlobalSoft5
What are the security issues if we send a query from the application? Microsoft1
 
For more C Sharp 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