Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mermyConstructor;
- public class Program {
- public static void main(String [] args) {
- Student student = new Student("Jack", "Smith", 90);
- Student second = new Student("John", "Smith", 30);
- System.out.println(student);
- System.out.println(second);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement