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()
精彩评论