AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-851





Question ID 3776

Given:
3.    class Employee {
4.    String name; double baseSalary;
5.    Employee(String name, double baseSalary) {
6.    this.name = name;
7.    this.baseSalary = baseSalary;
8.    }
9.    }
10.    public class SalesPerson extends Employee {
11.    double commission;
12.    public SalesPerson(String name, double baseSalary, double commission) {
13.    // insert code here
14.    }
15.    }
Which two code fragments, inserted independently at line 13, will compile? (Choose two.)

 

Option A

A.    super(name, baseSalary);
 

Option B

B.    this.commission = commission;
 

Option C

C.    super();
this.commission = commission;
 

Option D

D.    this.commission = commission;
super();
 

Option E

E.    super(name, baseSalary);
this.commission = commission;
 

Option F

F.    this.commission = commission; super(name, baseSalary);

Correct Answer A,E
Explanation


Question ID 3777

A team of programmers is reviewing a proposed API for a new utility class. After some discussion, they realize that they can reduce the number of methods in the API without losing any functionality. If they implement the new design, which two OO principles will they be promoting?
 

Option A

A.    Looser coupling

 

Option B

B.    Tighter coupling
 

Option C

C.    Lower cohesion
 

Option D

D.    Higher cohesion

Correct Answer A
Explanation

Send email to admin@getfreedumps for new dumps request!!!