Thread: Public classes
View Single Post
  #1 (permalink)  
Old October 22nd, 2006, 09:30 AM
myousman myousman is offline
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Public classes

Is it correct that if you declare a class as public that you don't have to instantiate it? Like if you have a public class "Tools", which has a method called "isLoggedIn", you can refer to Tools.IsLoggedIn() without having declared a variable and set it to a new instance of Tools?

If that is not the case, I'm having trouble understanding that portion of the case study in "beginning asp.net databases using vb.net" (.net v. 1.0) (Wrox)

Thanks if you can confirm this for me.