Java invention interface?

I know that C is a pure virtual class, but Java goes further and creates a first-class (no pun) concept for multi interface (no implementation) inheritance It is now the main content of the statically typed language Did Java invent the concept of interface? Or is it a first-class concept in an older language?

Solution

Here is a summary of the Java language environment

An interface in the Java language is just a specification of an object that declares the methods it implements Interfaces do not include instance variables or implementation code - only constants and method declarations The concept of interface in Java language is borrowed from the objective - C concept of a protocol

http://java.sun.com/docs/white/langenv/Object.doc2.html#6185

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>