SHARE
TWEET

Untitled

a guest Feb 26th, 2020 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package mermyConstructor;
  2.  
  3. public class Program {
  4.    
  5.     public static void main(String [] args) {
  6.        
  7.         Student student = new Student("Jack", "Smith", 90);
  8.         Student second = new Student("John", "Smith", 30);
  9.        
  10.         System.out.println(student);
  11.         System.out.println(second);
  12.        
  13.     }
  14.  
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top