1) Provide a source code solution (multiple classes using JavaScript) for the following problem using The factory object oriented design pattern: Creation of five different types of vehicles (Utility, Tractor,

1)   Provide a source code solution (multiple classes using JavaScript) for the following problem using The factory object oriented design pattern: Creation of five different types of vehicles (Utility, Tractor, Car, Truck, Motorcycle). A test program is needed to test the interaction with the factory for creating the vehicle objects. 2)   Provide a source code solution (multiple classes using JavaScript) for the following problem using the Iterator object oriented design pattern: Collection of movie objects with the following attributes: (a) Title (b) Release Year (c) One sentence representing the movie plot The objects can be created at run-time. The iterator class should implement next() and hasNext() methods for interacting with the movie object collection. A test program is needed to test the interaction with the iterator and movie object collection.

Do you need us to help you on this or any other assignment?


Make an Order Now