Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago