Skip to content

Commit

Permalink
Solution java test 03.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooja Pasawala committed May 29, 2015
1 parent 2f9a151 commit cc56cd3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions src/main/java/nyc/c4q/AbstractAwesomeClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
18 changes: 9 additions & 9 deletions src/main/java/nyc/c4q/ConcreteAwesomeClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit cc56cd3

Please sign in to comment.