--- Finn Bock <[EMAIL PROTECTED]> wrote: > > Does anyone know why we wrap the datatypes instances > in a property > instance? I think we could avoid the property > instance by having the > datatypes extends an AbstractProperty class which > implement a Property > interface: > > public interface Property { > public Length getLength(); > public Space getSpace(); > ... > } >
Finn, just so I understand more here--what is the set of methods that this interface would have? (You don't have to give me a full enumeration if it's huge--but let me know you determine them.) How many of them are there--10 of them or 20 or 30 or ??? Thanks, Glen > public class AbstractProperty { > public Length getLength() { > return null; > } > > public Space getSpace() { > return null; > } > > ... > } > > public class Length extends AbstractProperty { > // Rest of datatypes.Length class. > ... > > public Length getLength() { > return this; > } > } > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/