开发者社区 问答 正文

web后端中Apple代码是什么呀?

web后端中Apple代码是什么呀?

展开
收起
游客r3yctwty2duzw 2022-08-14 22:19:55 291 分享 版权
1 条回答
写回答
取消 提交回答
  • 代码如下

    Apple.java
    
    @Entity
    
    @Table{ame="apple")
    
    public class Apple extends Fruit {
    
    private int weight;
    
    public Apple(0
    
    public int getWeigh:(){return weight;}
    
    public void setWeigh:(int weight) { this.weight = weight;}
    
    }
    
    2022-08-15 09:03:40
    赞同 展开评论
问答标签:
问答地址: