diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-05-10 14:31:07 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-05-10 14:31:07 -0600 |
commit | 94254471915826aa8759df483f0b75624d740784 (patch) | |
tree | d146e2505a1911a5363ba14ce51f57d5ee0b7ecb /output/ex22.java | |
parent | 1298a32801f12cc20b5a706377443d557e8da9b6 (diff) |
New tests to verify correct overwriting detection
Diffstat (limited to 'output/ex22.java')
-rw-r--r-- | output/ex22.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/output/ex22.java b/output/ex22.java deleted file mode 100644 index 5d3107e..0000000 --- a/output/ex22.java +++ /dev/null @@ -1,21 +0,0 @@ -class Overloading { - public static void main(String[] args) { - System.out.println(new A().init()); - } -} - -class A { - public int init() { - return 0; - } - - public int x(A a) { - return 1; - } -} - -class B extends A { - public int x(B a) { - return 2; - } -} |