Class+Components+(Java)

1. Which of the following is a correct association? **a)** **One class, many objects** b) One object, many classes

2. // BankAccount account39 = new BankAccount(500.43); //

a. Identify the class b. Identify the object c. What type of parameter(s) are passed to the constructor? d. Write code to show what the constructor might look like.
 * BankAccount**
 * account39**
 * double**
 * Public BankAccount (double c) { **
 * DecCash=c; **
 * } **

// 3. double length = 44.0; // // int width =13; // // Rectangle myRect = new Rectangle(length, width); //

a. Identify the class **Rectangle** b. Identify the object **myRect** c. What type of parameter(s) are passed to the constructor? d. Write code to show what the constructor might look like.
 * int and double.**
 * Public Rectangle (double 1, int w) { **
 * DecLength = l; **
 * IntWidth = w; **
 * } **