From cc56cd32aeecce132f188d0c747dc2de17d73dd1 Mon Sep 17 00:00:00 2001 From: Pooja Pasawala Date: Wed, 20 May 2015 09:58:04 -0400 Subject: [PATCH] Solution java test 03. --- .../java/nyc/c4q/AbstractAwesomeClass.java | 5 +++-- .../java/nyc/c4q/ConcreteAwesomeClass.java | 18 +++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) 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; + } }