Article View: borland.public.jbuilder.java.language
Article #19815Re: Multiple Inheritance
From: Rich Wilkman
Date: Wed, 03 Dec 1997 00:00
Date: Wed, 03 Dec 1997 00:00
28 lines
1453 bytes
1453 bytes
Blake: Interfaces are great for truly abstracting complex code structures but if that's not what you are writing then it may seem a useless variety of "abstract". It does give a lot of flexibility. Another use is a constant pool. You can use interfaces to store constants for a package and get access via a simple call on "implements". -Rich Blake Williams wrote: > > To add another question, what is the point of using an interface? To my > knowledge, an interface only predefines the method names you must write, > but doesn't provide any code. If you have to write the methods anyway, > why would you want to inherit an interface? Wouldn't it make more sense > to just write the methods within your class and have complete freedom to > write them to best fit your situation? please clarify. Thanks. > > Blake Williams > > Bruno da Silva Bozza wrote: > > > Does anyone know why there is multiple interface inheritance in > > Java, but not multiple class inheritance.
Technical Details
Message-ID:
<3485F868.F734595F@corp.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34820D78.3F11372@aol.com.br> <3485C809.1DF172D5@dmwgroup.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,80129170e9818cce X-Google-Attributes: gidf74b3,public From: Rich Wilkman <rwilkman@corp.borland.com> Subject: Re: Multiple Inheritance Date: 1997/12/03 Message-ID: <3485F868.F734595F@corp.borland.com> X-Deja-AN: 295008979 References: <34820D78.3F11372@aol.com.br> <3485C809.1DF172D5@dmwgroup.com> Organization: None Newsgroups: borland.public.jbuilder.java.language