Re: Can Interfaces be mimicked with classes
- From: Chris Dollin <chris.dollin@xxxxxx>
- Date: Wed, 28 Feb 2007 14:33:27 +0000
sundarvenkata wrote:
I bet this is homework. Oh well, I've already written the reply.
Can the functionality of interfaces be mimicked with classes??
Not in Java, no. The things you can't put in interfaces -- specifically,
instance variables -- mean that you can inherit, ie, implement,
multiple interfaces without having to solve some knotty efficiency
issues.
If so
why would the language designers choose to include interfaces in the
language design when classes alone would have been sufficient
Premise false.
--
Chris "electric hedgehog" Dollin
"If there is a problem, you must confess it, Mr Chaplin."
Mr Carter, /The Beiderbeck Affair/
.
- References:
- Can Interfaces be mimicked with classes
- From: sundarvenkata
- Can Interfaces be mimicked with classes
- Prev by Date: query problem with Access database
- Next by Date: Re: method to access the name of the object that got created.
- Previous by thread: Re: Can Interfaces be mimicked with classes
- Next by thread: query problem with Access database
- Index(es):
Relevant Pages
|