Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class Driver {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. //Person p1 = new Person("Naqi", "011234");
  6. //System.out.println(p1.toString());
  7.  
  8. Student s1 = new Student("Sidiq", "099832", "B109893");
  9. System.out.println(s1.toString());
  10.  
  11. Student s2 = new Student();
  12.  
  13.  
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement