-
Notifications
You must be signed in to change notification settings - Fork 0
/
SavingsAccount.java
48 lines (35 loc) · 1.02 KB
/
SavingsAccount.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package bankingapplication;
import java.util.Scanner;
public class SavingsAccount extends BankAccount
{
Scanner obj1 = new Scanner(System.in);
public double interest;
//public double Cinterest_rate = 0;
public SavingsAccount(double inte, String n, String Ca, String CP, String CAN, double CB)
{
super(n, Ca, CP, CAN, CB);
interest = inte;
}
public void setCName(String Name)
{
CName = Name;
}
public String getCName()
{
return CName;
}
// public void setinterest_rate(double interest_rate)
// {
// this.Cinterest_rate = interest_rate;
// }
// public double getinterest_rate()
// {
// return this.Cinterest_rate;
// }
// public double calculate_interest()
//{
// System.out.print("Enter the Interest rate :");
//Cinterest_rate = obj1.nextDouble();
//interest = this.getBalance() * (Cinterest_rate)/100;
// return interest;
}