Question: 1 public class Student 2. int stdID; 3 String name; 4. double fees; 5 6 public Student(int stdID, String name, double fees) { 7 this.stdID=stdiD;

 1 public class Student 2. int stdID; 3 String name; 4.
double fees; 5 6 public Student(int stdID, String name, double fees) {
7 this.stdID=stdiD; 8 this.name=name; 9 this.fees=fees; 10 } 11 12 public Student0{

1 public class Student 2. int stdID; 3 String name; 4. double fees; 5 6 public Student(int stdID, String name, double fees) { 7 this.stdID=stdiD; 8 this.name=name; 9 this.fees=fees; 10 } 11 12 public Student0{ 13 this(202010021, "Husain", 1000); 15 160 public double discount(double fees){ 17 if(fees > 1000) 18 return fees*0.1; 19 else 20 return 0; 21 } 22 public double discount(int stdID) 23 if(stdID

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!