serhatyucell

test

Nov 24th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.  
  2. public class Test {
  3. public static void main(String[] args) {
  4.     //Student > class name
  5.     // stu > oject name
  6.     // new instantiating the object stu
  7.     // Student() > constructor
  8.    
  9.     Student stu1 = new Student();
  10.     stu1.printDetails();
  11.     Student stu2 = new Student(123,"Serhat","Yücel",99.9);
  12.     stu2.printDetails();
  13.    
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment