can you have variables in a Java class that extends an abstract class

前端 未结 0 1488
孤街浪徒
孤街浪徒 2021-02-19 04:44

I have the following piece of code

abstract class Animal {

    protected String sound;
    protected String foodType;
    protected int ID;

    abstract void se         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题