i am truly a beginner.please can anyone assume and help me define main method in this parameterized constructor programme
import java.io.*;
class studentmarks
{
String name;
double engmarks,phymarks,chemmarks;
double tot,avg;
public studentmarks(String s,double p,double e,double c)
{
name=s;
engmarks=e;
phymarks=p;
chemmarks=c;
}
void compute()
{
tot=engmarks+phymarks+chemmarks;
avg=tot/3;
}
void display()
{
System.out.println("nameis:"+name);
System.out.println("totalis:"+tot);
}
}
please...please...
thank you