/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
public class Main
{
String _name;
int _roll;
float _marks;
Main(String name, int roll,float marks)
{
this._name=name;
this._roll=roll;
this._marks=marks;
}
public String toString()
{
return "Name: "+this._name+"\n"+"Roll: "+this._roll+"\n"+"Marks: "+this._marks;
}
public static void main(String[] args)
{
Main m1=new Main("chandan",1,95.05F);
System.out.println(m1.toString());
}
}