What does implementation of inheritance mean in javadoc java.sql.Timestamp?

From JavaDoc class java.sql.Timestamp (highlighted by me)

Due to the differences between the Timestamp class and the java.util.Date class mentioned above, it is recommended that the code does not display the Timestamp value as an instance of java.util.Date. Inheriting the relationship between Timestamp and java.util.Date really means implementation inheritance, not an inheritance type .

What does it mean to say implementation inheritance, not type inheritance? Is this the case of HAS-A versus IS-A?

+4
source share
2 answers

, , , java.sql.Timestamp extends java.util.Date , Timestamp, Date. , java (, ++), Timestamp Date.

+5

, , Timestamp Date, , Timestamp , , Date.

+3

Source: https://habr.com/ru/post/1530927/


All Articles