What's wrong in this program
send me a correct program
class Worker
{
static int wno;
static int wrate;
static int hwk;
static int twage = wrate*hwk;
Worker(int wno,int wrate,int hwk)
{
wno = wno;
wrate = wrate;
hwk = hwk;
}
public static void main(String args[])
{
System.out.println("No. of workers"+wno);
System.out.println("hour is"+hwk);
System.out.println("work rate is"+wrate);
System.out.println("worker's wage"+twage);
Worker obj = new Worker(254,25,10);
return new obj.Worker(254,25,10);
}
}
Answers
Answered by
0
Answer:
See in the attachment provided.
Attachments:
Similar questions