1.Questions 1 – 10 uses the following Class Diagram:
![Customer Oide Pizza cL.pnce Real [1] ·shape:Shape pl E name String /1 덟 . Phonelinber Integer 111 ardedD:Integer Circle -radius Rell Q height印ouble [1] -Coupon](https://d2vlcm61l7u1fs.cloudfront.net/media%2Fd49%2Fd49bc775-92e4-4e76-8c8a-ed08a763d1c2%2FphpNkuAJz.png)
CouponForPizza data fields are preceded by tildes ~.
getArea method for Shape class is in italics.
Which of the following would be the class declaration forShape?
a.
public class Shape { …}
b.
public abstract Shape { … }
c.
public final Shape {… }
d.
class Shape {….}
1 points
QUESTION 2
Which of the following would be the declaration for thename data field within the Shape class ?
a.
private Stringname;
b.
abstract String name;
c.
String name;
d.
protected String name;
1
PayPal Gateway not configured
PayPal Gateway not configured