Interface vs Abstract Classes

前端 未结 4 1793
不知归路
不知归路 2021-01-14 05:35

I am a little bit familiar with the difference between Abstract and Interface classes but What do you think is the meaning of the sentence below?

An i

4条回答
  •  滥情空心
    2021-01-14 06:02

    An interface can only define constants while abstract class can have fields.

    your field from interface is by implicitly public, static, final

    which isn't case with abstract class

提交回复
热议问题