Mercurial > hg > testrepo
changeset 101:14b0d6849b19
Add new DefinitelyNotSomething class to Hello.java
author | Joshua Matsuoka <jmatsuok@redhat.com> |
---|---|
date | Wed, 05 Oct 2016 14:47:41 -0400 |
parents | 163e1ab50baa |
children | 2397ff9babf5 |
files | Hello.java |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Hello.java Tue Oct 04 14:08:26 2016 -0400 +++ b/Hello.java Wed Oct 05 14:47:41 2016 -0400 @@ -15,6 +15,11 @@ System.out.println(new Something().dontdoit()); System.out.println(new Something().dodoitanddontdoit()); Something.yay(1); + System.out.println(""); + System.out.println("nw task 3"); + new DefinitelyNotSomething().doSomething(); + new DefinitelyNotSomething().SomethingElse(); + System.out.println(new DefinitelyNotSomething().dontdoit()); } private static class Something @@ -63,6 +68,25 @@ } + private static class DefinitelyNotSomething extends Something + { + int y = 3; + + public DefinitelyNotSomething() { + super(); + } + + public void doSomething() { + System.out.println("Did Something."); + } + + @Override + public void SomethingElse() { + System.out.println("Did Something Else."); + } + + } + static void hello() { System.out.println ("Hello World!");