Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 5th, 2006, 5:58 AM   #11
alcdotcom
Programmer
 
Join Date: Jan 2006
Location: Dallas, TX
Posts: 49
Rep Power: 0 alcdotcom is on a distinguished road
I'm not completely sure about the date, but Java has been around officially since about 1995 and C# since around 2000/2001. The first version of C# was (syntactically) so much like Java that it was almost a clone, in my opinion. In the past 5-6 years, since C#'s release, the two languages have borrowed ideas from each other. 5-6 years may not seem like a long time, but in the IT/software industry it's an eon.

Edit: But, yes, compared to Java C# is a relative newcomer.

Last edited by alcdotcom; Jan 5th, 2006 at 6:26 AM.
alcdotcom is offline   Reply With Quote
Old Jan 5th, 2006, 8:27 AM   #12
Klipt
Hobbyist Programmer
 
Join Date: Dec 2005
Posts: 118
Rep Power: 0 Klipt is an unknown quantity at this point
I suppose it's good for Sun to have some competition. As for setters and getters, I'm sure Delphi had those ages ago, although maybe Borland copied them from VB :p
Klipt is offline   Reply With Quote
Old Jan 5th, 2006, 8:52 AM   #13
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Klipt
I suppose it's good for Sun to have some competition. As for setters and getters, I'm sure Delphi had those ages ago, although maybe Borland copied them from VB :p
Getters and setters have been around for a lot longer than that
Arevos is offline   Reply With Quote
Old Jan 5th, 2006, 10:20 AM   #14
alcdotcom
Programmer
 
Join Date: Jan 2006
Location: Dallas, TX
Posts: 49
Rep Power: 0 alcdotcom is on a distinguished road
Edison may have invented the modern getter/setter.
setLightSwitch( true );  // Let there be light
getLight();  // and then there was light and it was good.
alcdotcom is offline   Reply With Quote
Old Jan 5th, 2006, 11:17 AM   #15
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by alcdotcom
Edison may have invented the modern getter/setter.
setLightSwitch( true );  // Let there be light
getLight();  // and then there was light and it was good.
Swan and Göbel got there before him, though
Arevos is offline   Reply With Quote
Old Jan 5th, 2006, 12:53 PM   #16
elford
Programmer
 
elford's Avatar
 
Join Date: Nov 2005
Posts: 35
Rep Power: 0 elford is on a distinguished road
Quote:
Originally Posted by Writlaus
Not create an instance of that class?
If you're looking only to access the method without instanting it, declare the method as static. If you have a reason for wanting the variables, see the other posts on this page.
elford is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:09 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC