R
Roedy Green
Is there a word that means "class or interface"?
Is there a word that means "class or interface"?
Genre has been used a lot for class. Different language variants ofIs there a word that means "class or interface"?
Is there a word that means "class or interface"?
Classes can be abstract too, which is sort of like an interface, although
some methods now may have an implementation.
Is there a word that means "class or interface"?
Abstraction unit
in message
-> object
Huh? Isn't "object" an instance of a class or interface? I prefer "type"
as suggested by markspace where object is an instance of a type (class
or interface).
It is. But the OP didn't say whether he talks about types or instances.
mingleIs there a word that means "class or interface"?
ClassOrInterfaceTypeIs there a word that means "class or interface"?
He refers to "class or interface" which are most definitely types, not
instances surely?
It seems to me that the only reason Java has both Abstract Class and
Interface definitions is to sidestep having to implement multiple
inheritance:
if multiple inheritance was supported there would be no
difference between them.
That said, I seldom use Interface definitions
but find the distinction can be useful.
Marcel Müller said:Yes the implementation of interfaces is different from that of classes.
Martin said:It seems to me that the only reason Java has both Abstract Class and
Interface definitions is to sidestep having to implement multiple
inheritance
FWIW, I disagree with this entirely.
For me, as for [some] others, interfaces are an expression of a /contract/ --
they are used to communicate guarantees/requirements between producers and
consumers of APIs.
Abstract classes, on the other hand, are nothing to do with contractual
communication between programmers. They are skeleton implementations.
[...]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.