![]() |
|
We don't bite newbies here... much | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
Hi -- I am planning on using Class::MethodMaker like this: The idea is the object must define certain attributes at creation. Rather than start each class with this idiom, I was thinking of subclassing Class::MethodMaker as per the docs so I could specify certain get_set methods as 'required', such that the class would die if an object was created lacking these arguments. The docs on subclassing C:MM leave me somewhat befuddled... Can anyone give me some suggestions how might I subclass C:MM to obtain this 'required' method functionality? Thanks for any suggestions In reply to Subclassing Class::MethodMaker to obtain "required" fields by rkg
|
|