Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

Are upfront payments considered separate performance obligations?

Answered: 1 week ago