Abstract class extends concrete class

前端 未结 5 1819
时光取名叫无心
时光取名叫无心 2020-12-14 15:44

I earlier learned that abstract class can extend concrete class. Though I don\'t see the reason for it from JAVA designers, but it is ok. I also learned that abstract class

5条回答
  •  不知归路
    2020-12-14 16:21

    To make the class that extended your class (made abstract) to provide specific type of implementation.

    For example:

    • abstract ClassA
    • ClassB extends ClassB - Provides specific implementation of abstract methods defined in ClassA

提交回复
热议问题