dcsimg
Mehtod Overloading in Java Beans
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Yufeng_Wen
Posted On:   Wednesday, August 1, 2001 04:43 PM


Is method overloading allowed to overload the setter/getter method of a bean property? If it is allowed, is this a good practice? If it is not a good practice, does it break the OO Design rules without using overloading instead of using another method name just to avoid the method name confliction?

Re: Method Overloading in Java Beans

Posted By:   John_Zukowski  
Posted On:   Friday, August 3, 2001 08:07 AM

You can always overload the methods. However, the other methods won't be used when using the Bean component in a builder tool like JBuilder.

Re: Mehtod Overloading in Java Beans

Posted By:   sanjay_pai  
Posted On:   Thursday, August 2, 2001 10:28 PM

Ofcourse yes. It is one of the features of OO programming.
About | Sitemap | Contact