SHARE
TWEET

MainClass

GSculerlor Oct 12th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package OverloadOverride;
  2.  
  3. public class MainClass {
  4.     public static void main(String[] args) {  
  5.         MyClass t = new MyClass(0);  
  6.         t.info();  
  7.         t.info("overloaded method");  
  8.         //Overloaded constructor:  
  9.         new MyClass();  
  10.     }
  11. }
RAW Paste Data
Top