8 Replies - 17083 Views - Last Post: 28 January 2014 - 03:41 AM Rate Topic: -----

#1 saranyadevadoss   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 22-December 13

What is the use of extend keyword in c#

Posted 26 January 2014 - 10:12 AM

In c# extending the class and implementing an interface is done by : symbol..
But c# has extend keyword. What is the use of extend keyword in c#?
Is This A Good Question/Topic? 0
  • +

Replies To: What is the use of extend keyword in c#

#2 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6537
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: What is the use of extend keyword in c#

Posted 26 January 2014 - 10:30 AM

Where are you reading about this keyword "extend"?
I've never run across it. And a search of MSDN doesn't reveal it.
Are you sure you aren't reading JAVA code? They look very much alike.
http://www.javacoffe...aq/faq0048.html
Was This Post Helpful? 0
  • +
  • -

#3 Michael26   User is offline

  • Futurama: Insert funny joke here
  • member icon

Reputation: 414
  • View blog
  • Posts: 1,664
  • Joined: 08-April 09

Re: What is the use of extend keyword in c#

Posted 26 January 2014 - 01:22 PM

Yes extend is used in Java and : is used in C# to indicate you are using inheritance, that can be used for class or for interface.
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6537
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: What is the use of extend keyword in c#

Posted 26 January 2014 - 01:31 PM

View Postsaranyadevadoss, on 26 January 2014 - 11:12 AM, said:

But c# has extend keyword.


I repeat, where did you read that C# has a keyword of 'extend'? I like knowing who is putting out bad info, because if you read this it means we might see 500 more rookies hitting the site with the same question.
Was This Post Helpful? 0
  • +
  • -

#5 Curtis Rutland   User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 5106
  • View blog
  • Posts: 9,283
  • Joined: 08-June 10

Re: What is the use of extend keyword in c#

Posted 26 January 2014 - 07:53 PM

Here's a list of all C# keywords, including the contextual ones:

http://msdn.microsof...y/x53a06bb.aspx

Note that there is no "extend". There is an "extern" keyword, perhaps that's what you meant. You can see what any of them are used for by clicking any of them on the page.
Was This Post Helpful? 1
  • +
  • -

#6 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6537
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: What is the use of extend keyword in c#

Posted 27 January 2014 - 05:58 AM

Anyone else notice we are all talking to ourselves since the OP left the conversation?
Personally I suspect he was reading java code and didn't realize it wasn't C#.
Now is to embarrassed to come back and tell us or say "thanks" for the help.
Was This Post Helpful? 0
  • +
  • -

#7 Michael26   User is offline

  • Futurama: Insert funny joke here
  • member icon

Reputation: 414
  • View blog
  • Posts: 1,664
  • Joined: 08-April 09

Re: What is the use of extend keyword in c#

Posted 27 January 2014 - 06:35 AM

I noticed there are more of this "hit and run" questions here, almost 100% of them are posted by new members in hopes that we will spoon feed them everything they need. I find it very hard to believe that these people are incapable of doing even the simplest of google or MSDN searches, i think it is pure laziness or just vanity.
Was This Post Helpful? 0
  • +
  • -

#8 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6537
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: What is the use of extend keyword in c#

Posted 27 January 2014 - 06:44 AM

Sadly, its not all that new. Maybe its just another high-point because its mid-semester for a lot of schools and the kids that were lazy in the beginning are starting to pay the price for it now that they need that info in the later chapters. Look at how old the dates are these blog entries of mine; created out of frustration for this 'hit-n-run' posters that will even get indignent if we don't do their work for them.


Was This Post Helpful? 0
  • +
  • -

#9 Michael26   User is offline

  • Futurama: Insert funny joke here
  • member icon

Reputation: 414
  • View blog
  • Posts: 1,664
  • Joined: 08-April 09

Re: What is the use of extend keyword in c#

Posted 28 January 2014 - 03:41 AM

And also don't forget the rookie that almost pushed you over the edge.
Good bye, and thanks for all the fish (Archived)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1