Question: Please give main method too Problem Description Implement the following classos according to the class diagrams. And you may need to implement set / get
Please give main method too
Problem Description Implement the following classos according to the class diagrams. And you may need to implement set / get methods or other methods il necessary You are required to define function parameters for the Factory constructor (..) and ProductFactory constructor (...) in order to create objects of them properly. All classes need to implement display method After you implement all the classes and the methods specified in the class diagram, write a main method to create objects of the classes you defined and print out their contents. Interface Interlace FactoryConstants NUM PRODUCTS 100 DISCOUNT-02 Displayable +display): void Abstract Abstract Factory tproducts: Products -factoryName:String NUM PRODUCTS Product ( Factory setProductlpos: int, product: Product) double Concrete Concrete Concreto Building buildingName: String -area : double +Building ( ProductFactory buildings: Building0 +ProductFactory(...) +find +findAllProductsMore Thanprice: double) model: String price: doublo +Computer ( buildingName:String area : double model: String price : double Productp +getPrice) : double +getArea0 : double Page 1 of 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
