diff --git a/src/main/java/nyc/c4q/AbstractAwesomeClass.java b/src/main/java/nyc/c4q/AbstractAwesomeClass.java index e3f9c21..88c345e 100644 --- a/src/main/java/nyc/c4q/AbstractAwesomeClass.java +++ b/src/main/java/nyc/c4q/AbstractAwesomeClass.java @@ -4,14 +4,15 @@ * Created by amyquispe on 5/19/15. */ public abstract class AbstractAwesomeClass implements AwesomeInterface { + int data; @Override public int getData() { - return 0; + return this.data; } @Override public void setData(int someData) { - + this.data = someData; } } diff --git a/src/main/java/nyc/c4q/ConcreteAwesomeClass.java b/src/main/java/nyc/c4q/ConcreteAwesomeClass.java index 0ba40b4..56129fc 100644 --- a/src/main/java/nyc/c4q/ConcreteAwesomeClass.java +++ b/src/main/java/nyc/c4q/ConcreteAwesomeClass.java @@ -13,13 +13,13 @@ public ConcreteAwesomeClass(int startData){ this.data = startData; } -// @Override -// public int getData() { -// return data; -// } -// -// @Override -// public void setData(int someData) { -// this.data = someData; -// } + @Override + public int getData() { + return data; + } + + @Override + public void setData(int someData) { + this.data = someData; + } }