Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started