Skip to content
Browse files

added get getdescription and implemented accept

  • Loading branch information...
1 parent 97f43b4 commit 6f072a7b343bee9de1032fd521e711f03cff5a1d @esussman committed Apr 16, 2012
View
8 Assignment3E/src/customerSearch/products/Version1/SeaGateDriveV1.java
@@ -6,10 +6,14 @@
public abstract class SeaGateDriveV1
{
- ArrayList description;
+ ArrayList<String> description;
+ public ArrayList<String> getDescription()
+ {
+ return description;
+ }
void accept(ProductVisitor visitor)
{
-
+ visitor.visit(this);
}
}
View
6 Assignment3E/src/customerSearch/products/Version2/SeaGateDriveV2.java
@@ -7,9 +7,13 @@
public abstract class SeaGateDriveV2
{
ArrayList description;
+ public ArrayList<String> getDescription()
+ {
+ return description;
+ }
void accept(ProductVisitor visitor)
{
-
+ visitor.visit(this);
}
}
View
6 Assignment3E/src/customerSearch/products/Version3/SeaGateDriveV3.java
@@ -7,9 +7,13 @@
public abstract class SeaGateDriveV3
{
ArrayList description;
+ public ArrayList<String> getDescription()
+ {
+ return description;
+ }
void accept(ProductVisitor visitor)
{
-
+ visitor.visit(this);
}
}

0 comments on commit 6f072a7

Please sign in to comment.
Something went wrong with that request. Please try again.