Lab - { return id; } public void setID(double d) { id = d;...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.lang.*; import java.util.*; import java.io.*; public class Lab implements Cloneable, Serializable p { String labName; double id; d public Lab() { this("", 0.0); } public Lab(String n, double d) { labName = n; id = d; } public String getLabName() { return labName; } public void setLabName(String n) { labName = n; } public double getID()
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { return id; } public void setID(double d) { id = d; } public boolean equals(Object o) { return ( ((Lab)o).getLabName().equals(labName) && ((Lab)o).getID()==id ); } public Object clone() { try { return super.clone(); } catch(CloneNotSupportedException ex) { return null; } } }...
View Full Document

Page1 / 2

Lab - { return id; } public void setID(double d) { id = d;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online