Class ConcretePrototype2
java.lang.Object
Creational.Prototype.ConcretePrototype2
- All Implemented Interfaces:
Prototype
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConcretePrototype2
public ConcretePrototype2(int attribute) Constructor to initialize the attribute.- Parameters:
attribute- The value to initialize the prototype's attribute.
-
-
Method Details
-
clone
-
display
-