Write a java program to create an Account class and define constructors in it. Inherit Saving_Bank_Accountclass andCurrent_Bank_Account class from the Account class. Override constructors of Account class in Saving_Bank_Account and Current_Bank_Account classes. Define appropriate methods to operate these accounts. Make necessary assumptions. Give proper comment in your program to increase redability.
public class Main
{
public static void main(String[] args) {
}
}
class Account{
public Account(){
}
}
class Saving_Bank_Account extends Account{
public Saving_Bank_Account(){
}
}
class Current_Bank_Account extends Account{
public Current_Bank_Account(){
}
}
Comments
Leave a comment