| | |
different syntax for extending a class?
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 4
Reputation:
Solved Threads: 0
I was looking at a tutorial for when you extend a class. One tutorial said you used a keyword extends between the two class names and another tutorial said you used a period between the two class names to join the two classes together. Both of them are c# tutorials.
Not that it's a big deal, but are they both correct? They both seem to be decent tutorials for the most part. I'm sort of doing a side by side comparison with 2 tutorials. Sometimes one of the tutorials will explain something better than the other and vice versa.
Thanks in advance
Not that it's a big deal, but are they both correct? They both seem to be decent tutorials for the most part. I'm sort of doing a side by side comparison with 2 tutorials. Sometimes one of the tutorials will explain something better than the other and vice versa.
Thanks in advance
Hi,
In C#, we use colon ( : ) to extend from one class. Java language uses this extends keyword to inherit from a class.
If u have doubt like this, try it practically with these two types. You get the Answer
•
•
•
•
One tutorial said you used a keyword extends between the two class names
If u have doubt like this, try it practically with these two types. You get the Answer
Last edited by selvaganapathy; Oct 10th, 2008 at 12:16 am.
KSG
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
perhaps what you saw on the tutorial (link it if you could) was something where it was taking "myapp.myclass" and extending it.. where where myapp is the name space and myclass being the actual class being extended
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Similar Threads
- Need help with T/F and Multiple Choice (Java)
- help plss..emergency. (Java)
Other Threads in the C# Forum
- Previous Thread: Best Practices
- Next Thread: Problems with databindings
| Thread Tools | Search this Thread |
.net access algorithm api array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql netcfsvcutil.exe operator path photoshop php picturebox pixelinversion platform post programming radians regex remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml






