Answer:
Following are the method definition to this question:
public String notice_bill(double amount) //defining method
{
return this.name+", account number "+this.currAccNum+", please pay $"+amt; //return value.
}
Step-by-step explanation:
In the given question some information is missing, that is example So, method definition to this question can be described as follows:
- In the above method definition a string method "notice_bill" is declared, which accepts a double value in its parameter, that is "amount".
- Inside the method, this keyword is used, that hold values and return its value as a message.