Why is there a private access modifier in an abstract class in Java, even though we cannot create an instance of an abstract class?

后端 未结 4 498
误落风尘
误落风尘 2020-12-08 11:25

I know it is not a good coding practice to declare a method as private in an abstract class. Even though we cannot create an instance of an

4条回答
  •  孤街浪徒
    2020-12-08 11:38

    I know it is not a good coding practice to declare a method as private in an abstract class.

    I don't. Where did you get that idea?

    what is the scope of it within an abstract class?

    The abstract class.

提交回复
热议问题