nagalenoj has asked for the wisdom of the Perl Monks concerning the following question:
Objects are used when we need multiple instances and it is used to bind variables and related methods.
I have written a class and I don't need multiple instances of the class to be used. Is it necessary to create object for the class?
I feel its not necessary. Because the functions can be accessed directly and the values can be accessed. Is it right? Kindly clarify me...
--Nagalenoj H.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Object creation
by gwadej (Chaplain) on Jun 03, 2009 at 13:06 UTC | |
Re: Object creation
by JavaFan (Canon) on Jun 03, 2009 at 13:06 UTC | |
Re: Object creation
by rir (Vicar) on Jun 03, 2009 at 14:06 UTC | |
Re: Object creation
by targetsmart (Curate) on Jun 03, 2009 at 13:35 UTC | |
Re: Object creation
by John M. Dlugosz (Monsignor) on Jun 03, 2009 at 18:57 UTC | |
Re: Object creation
by vinoth.ree (Monsignor) on Jun 03, 2009 at 13:04 UTC |
Back to
Seekers of Perl Wisdom