Creating Classes and Objects in Java A class is created using the class keyword . In the above declaration, Student is the name of a class. In other words, Student is a class. In the body of the class, the attributes name and roll_no are defined.
Creating Classes and Objects in Java A class is created using the class keyword . In the above declaration, Student is the name of a class. In other words, Student is a class. In the body of the class, the attributes name and roll_no are defined.