Package Creational.Prototype
Class ConcretePrototype2
java.lang.Object
Creational.Prototype.ConcretePrototype2
- All Implemented Interfaces:
Prototype
Another concrete implementation of the Prototype interface.
Represents a prototype with an integer attribute.
-
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