Geeks Talk

Prepare for your Next Interview




Deledate method

This is a discussion on Deledate method within the ASP.NET forums, part of the Web Development category; hi plz help me i got a question in interview that what is delegate method. why it is used and to which it extends.....


Go Back   Geeks Talk > Web Development > ASP.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-07-2008
Junior Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
kissuisin is on a distinguished road
Question Deledate method

hi plz help me

i got a question in interview that

what is delegate method. why it is used and to which it extends..

Last edited by kissuisin : 02-07-2008 at 10:09 PM. Reason: title is wrong it is delegate method
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-14-2008
Banned
 
Join Date: Oct 2007
Location: Hyderabad
Posts: 176
Thanks: 2
Thanked 11 Times in 11 Posts
quality_quantity is on a distinguished road
Re: Deledate method

Delegate Methods
Eclim supports generation of delegate methods via the :JavaDelegate command. To utilize this functionality you must first place the cursor on a global field (in the main source file class or within an inner class), and then invoke the :JavaDelegate command.

In the following source, you can place the cursor anywhere starting from the first 'p' in private, to the trailing semicolon, and then invoke the :JavaDelegate command.

private List myList;
Invoking this command with the cursor on some other source element will generate the appropriate error.

Once successfully invoked, the result will be the opening of a lower window with all the methods that may be inserted that will delegate to the value of the field.

Here is a section of the content displayed when invoking the command on a field of type java.util.List like the one above.

com.test.TestList

package java.util;
public interface List
public abstract int size ()
public abstract boolean isEmpty ()
public abstract boolean contains (Object o)
public abstract Object[] toArray ()
...
From this newly opened window you can select a method by simply hitting <Enter> with the cursor over the method signature and a delegate method will be created.
Reply With Quote
Reply

  Geeks Talk > Web Development > ASP.NET


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
method overloaing? psuresh1982 Java 5 09-07-2008 06:40 AM
Get Method in Hashmap psuresh1982 Java 1 10-24-2007 02:25 AM
method in a method umeshap Java 4 06-08-2007 01:59 PM
Using POST method:ASP.NET saswata.purkayastha AJAX & XML 0 04-27-2007 07:46 AM
Help me to Know about this Method blenda ASP.NET 1 11-12-2006 03:16 PM


All times are GMT -4. The time now is 08:56 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved