pastebin

Paste Search Dynamic
Recent pastes
Tester
  1. public class Tester {
  2. public static void main(string[] args) {
  3. Base obj = new Derived();
  4. obj.method(25);
  5. }
  6. }
  7. class Base {
  8. public static void method(int a) {
  9. system.out.println("Base Method");
  10. }
  11. }
  12. class Derived extends Base {
  13. public static void method(int a) {
  14. system.out.println("Derived Method");
  15. }
  16. }
Parsed in 0.007 seconds