1 be able to differentiate between specification and


Java

1) Be able to differentiate between specification and implementation both for classes and for individual methods.

public class Human implements Employable{

    private int age = 5;

    private String name;

 public String getName( ){

return this.name;

    }

    public String setName( String nm){

        if( okName(nm) ) name = nm;

    }

    private static boolean okName(String xyz){

        return xyz.length()<50;

   }

Write a complete specification for Human.

2) Be able to write object-oriented code. Be able to use Exceptions.

Add code to the previous class Human that provides a constructor that allows the client to initialize the name of a human, but refuses to construct a Human if the name given by the client is not an ok name.

Understand ADT's stack, queue, deque, set, and map and be able to choose and use appropriate corresponding Java classes to solve problems.

When Employees are hired we keep track of their data. 

The primary thing we need to do with this data is to fire Employees, and we always fire the Employee who has the least seniority. 

Choose between Stack Queue, Deque, Set, and Map as a good collection for holding our Employees.

Explain your choice.

Solution Preview :

Prepared by a verified Expert
Business Management: 1 be able to differentiate between specification and
Reference No:- TGS02564003

Now Priced at $20 (50% Discount)

Recommended (91%)

Rated (4.3/5)