class student{
String name;
int rollno;
int age;
void info(){
System.out.println("Name: "+name);
System.out.println("rollno: "+rollno);
System.out.println("Age: "+ age);
}
}
public class Main{
public static void main(String[] args){
student std=new student();
std.name="Leela";
std.rollno=15;
std.age=21;
std.info();
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: