Optional as a return type for getters in Java

后端 未结 0 1033
抹茶落季
抹茶落季 2021-01-29 03:09

I want to call a concrete method from an abstract class for its implemented class

public abstract class Animal {
    private Optional cat;

    Anim         


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