Advertisement
rmword

Untitled

Oct 12th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public class MainClass
  2. {
  3. public static void main(String[] args){
  4. MyClass t = new MyClass(0);
  5. t.info();
  6. t.info("overloaded method");
  7. //Overloaded constructor
  8. new MyClass();
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement