Thread: Public classes
View Single Post
  #2 (permalink)  
Old October 22nd, 2006, 10:23 AM
dparsons dparsons is offline
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Always instantiate your objects; If nothing else it saves typing.

While i could do

int i = <namespace>.<class>.method/function;

it is easier if i do
<namespace>.<class> myCls = New <namespace>.<class>();

then my original line becomes int i = myCls.method/function;

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature