开发者

Extending a Java class

There are two classes

public class Account
{
    public Acconut()
    {
       //constructor
   开发者_运维技巧 }
}


public class SavingsAccount extends Account
{
}

while doing the inheritance i have got an error message "cannont find symbol Symbol: constructor Account()" what might be the error in my code...??


A typo in your code:

public Acconut()

Instead of

public Account()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜