How to call abstract class method in java

后端 未结 3 1196
暖寄归人
暖寄归人 2021-01-12 11:14

I want to call a method of an abstract class in my own class. The abstract class is:

public abstract class Call {

    public Connection getEarliestConnectio         


        
3条回答
  •  生来不讨喜
    2021-01-12 11:59

    Looks like the Call cal is null before it is passed into the function getCallFailedString. Make sure you extend Call and instantiate the extended class and pass it into getCallFailedString.

提交回复
热议问题