Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCSD > interface

Reply
Thread Tools

interface

 
 
disillusioned_01
Guest
Posts: n/a
 
      12-29-2003

while defining an intreface
Why do we need to give variables names ?
like 'index' in the following eg.
Since variable binding will be done only at the
implementation of interface I don't see the need to give
varible names .
Could a mix of c syntax be better eg..string this[int] {
get; set; }

Assume that 'index' will be never used

Interface IExample
{
string this[int index] { get; set; }
event EventHandler E;
void F(int value);
string P { get; set; }
}


-- ignorant
 
Reply With Quote
 
 
 
 
Jay Walters
Guest
Posts: n/a
 
      12-31-2003


I can't believe you're mad enough to post a msg about it.

Happy New Year (hiccup)


>-----Original Message-----
>
>while defining an intreface
>Why do we need to give variables names ?
>like 'index' in the following eg.
>Since variable binding will be done only at the
>implementation of interface I don't see the need to give
>varible names .
>Could a mix of c syntax be better eg..string this[int] {
>get; set; }
>
>Assume that 'index' will be never used
>
>Interface IExample
>{
> string this[int index] { get; set; }
> event EventHandler E;
> void F(int value);
> string P { get; set; }
>}
>
>
>-- ignorant
>.
>

 
Reply With Quote
 
 
 
 
disiilusioned_01
Guest
Posts: n/a
 
      01-02-2004
Belated New year wishes

>-----Original Message-----
>
>
>I can't believe you're mad enough to post a msg about it.
>
>Happy New Year (hiccup)
>
>
>>-----Original Message-----
>>
>>while defining an intreface
>>Why do we need to give variables names ?
>>like 'index' in the following eg.
>>Since variable binding will be done only at the
>>implementation of interface I don't see the need to

give
>>varible names .
>>Could a mix of c syntax be better eg..string this[int]

{
>>get; set; }
>>
>>Assume that 'index' will be never used
>>
>>Interface IExample
>>{
>> string this[int index] { get; set; }
>> event EventHandler E;
>> void F(int value);
>> string P { get; set; }
>>}
>>
>>
>>-- ignorant
>>.
>>

>.
>

 
Reply With Quote
 
General Protection Fault
Guest
Posts: n/a
 
      01-05-2004
disillusioned_01 wrote:

> while defining an intreface
> Why do we need to give variables names ?


Why would you want to put a variable in an interface?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Going from higher security level interface to lower security interface- HELP!!! - AM Cisco 4 12-28-2004 09:52 PM
PCI interface or USB interface David Wireless Networking 4 09-16-2004 01:01 PM
allow ssh only on outside interface, but telnet on inside interface of router no-one Cisco 0 07-28-2004 04:17 PM
PIX: how to allow 1 host from outside interface to access another host on the inside interface? jonnah Cisco 1 04-21-2004 02:26 PM
static nat between phisical interface and virtual interface on same ethernet Andrea Cisco 0 04-19-2004 09:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57