Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
227 B
2
Indexable
Never
class Student
{
int id;
String name; void display()
{
System.out.println(id+" "+name);
}
public static void main(String args[])
{
Student s1=new Student(); Student s2=new Student(); s1.display();
s2.display();
}
}
Leave a Comment