Klassenvererbung und Verkapselung


public class Driver {

        

        public static void main(String[] args) {
//              test case.
                SavingsAccount sa = new SavingsAccount("hdfc", "delhi", 10);
                System.out.println("amount: " + sa.calculateAmount(1000));
        }

}
Grumpy Gentoo