N
NuclearFusion
Hi,
there seems to be more than one way to execute class methods.
I've seen the form (I use the classmethod new as an example):
newObject = Classname::new
but also
newObject = Classname.new
Bothe seem to work OK.
Is there a difference? If yes, what is the difference?
Also I see :: being used in the context of modules. Can you tell me
about that as well?
Thanks!
Arie
there seems to be more than one way to execute class methods.
I've seen the form (I use the classmethod new as an example):
newObject = Classname::new
but also
newObject = Classname.new
Bothe seem to work OK.
Is there a difference? If yes, what is the difference?
Also I see :: being used in the context of modules. Can you tell me
about that as well?
Thanks!
Arie