在现代的面向对象的计算机语言中,存在两种继承:interface inheritance 和instance inheritance。在java中称为implements 和extends。