Update Vet.java

This commit is contained in:
Yasaswini Desu 2025-02-21 11:21:37 +05:30 committed by GitHub
parent f4b3ad155d
commit b1ad8a32fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,10 +64,6 @@ public class Vet extends Person {
return Collections.unmodifiableList(sortedSpecs);
}
public int getNrOfSpecialties() {
return getSpecialtiesInternal().size();
}
public void addSpecialty(Specialty specialty) {
getSpecialtiesInternal().add(specialty);
}