Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 1 point Questions 1 - 10 uses the following Class Diagram: IL Der ng Det @A Couple - 1 - C- Ang .

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
QUESTION 1 1 point Questions 1 - 10 uses the following Class Diagram: IL Der ng Det @A Couple - 1 - C- Ang . CouponFor Pizza data fields are preceded by tildes get Area method for Shape class is in italics. Which of the following would be the class declaration for Shape? 3. public class Shape (...) public abstract Shape CouponFor Pizza data fields are preceded by tildes - getArea method for Shape class is in italics. Which of the following would be the class declaration for Shape? a. public class Shape {...} b. public abstract Shape {...} public final Shape {...} class Shape {...} c. QUESTION 2 Which of the following would be the declaration for the name data field within the Shape class? a private String name; b.abstract String name; String name: d. protected String name; c. QUESTION 3 Which of the following would be the correct declaration for totalCoupons with the Coupon class? a private int totalCoupons; b.private double totalCoupons; public static int totalCoupons; d. private static int totalCoupons = 0; QUESTION 4 a Which would be the correct method header for getArea within the Shape class? public double getArea(); b. public static double getAreal); . public abstract double getArea(); d public double getArea() = 0; QUESTIONS Which class has public data fields? a. Order b. Pizza Customer Coupon d QUESTION 6 Which of the following best describes the association between Pizza and Shape? a. It is a 1-to-1 relationship b. It is a many-to-one relationship Pizza is contained within Shape d. Shape is contained within Pizza e. Both b and d are true QUESTION 7 Which class has a static method? a. Customer b. Order Pizza d. Coupon QUESTION 8 a. What is the relationship between Circle and Shape? Aggregation b. Many-to-Many C. Composition d. Generalization QUESTION 9 a. What type of class is CouponForPizza? Aggregation b. Composition C. Association d. Generalization QUESTION 10 How many classes have package datafields? a. Ob., C. 2 od.3 QUESTION 1 Questions 1 - 10 uses the following Class Diagram: Oder timing Phenberger customed Integer 1" dete onde te Setter PS price el the Shape 1 Sering Shape 11 getable And Aletter/Getter 0 Code ndute Rece whole Angel Coupedofi - pellame Sang - Coupons - Ent AGO Delle Alberto + town . De

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

Step: 3

blur-text-image

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions