package postgraduate;
public class POSTGRADUATE {
private String thesis, name;
private int number;
private double amount;
POSTGRADUATE(String t, String n, int nu, double a){
thesis = t;
name = n;
number = nu;
amount = a;
}
void show(){
System.out.printf("Name: %s\nStudent Number: "
+ "%d\nLoan Amount: %f\nThesis: %s", name, number, amount, thesis);
}
double interest(){
return amount * 0.1;
}
public static void main(String[] args) {
POSTGRADUATE p = new POSTGRADUATE("I do not know","Mpho", 201812345, 10000.0);
p.show();
}
}
Comments
Leave a comment