From 8a040dd178f114f7833d919a814d9fea1f75196b Mon Sep 17 00:00:00 2001 From: Ryan Desmond Date: Mon, 24 Apr 2017 14:30:05 +0800 Subject: [PATCH] Update PolymorphismCarModel.java --- .../java/com/javafundamentals/model/PolymorphismCarModel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Review/src/main/java/com/javafundamentals/model/PolymorphismCarModel.java b/Review/src/main/java/com/javafundamentals/model/PolymorphismCarModel.java index ddb52a1..d3d5834 100644 --- a/Review/src/main/java/com/javafundamentals/model/PolymorphismCarModel.java +++ b/Review/src/main/java/com/javafundamentals/model/PolymorphismCarModel.java @@ -46,6 +46,10 @@ public double costPerMile() { //method overloading example //it takes an int as a parameter + + // RYAN: the overloading looks good - but you're never using the costPerMileEx you take as a parameter + // I'm sure you know this, but want to be sure - in the code below you're ignoring the parameter and + // always setting costPerMileEx = 9; public double costPerMile(int costPerMileEx){ costPerMileEx = 9;