Source Code

bluej

Person

class Person {
    String firstName;
    String lastName;
}

Vet

import java.util.Set;

class Vet extends Person {
    Set<Specialty> specialties;
}

Owner

import java.util.Set;

class Owner extends Person {
    String address;
    String city;
    String telephone;
    Set<Pet> pets;    
}

PetType

class PetType {
    String name;
}

Specialty

class Specialty {
    String name;
}

Pet

import java.util.Date;
import java.util.Set;

class Pet {
    String name;
    Date birthDate;
    PetType type;
    Owner owner;
    Set<Visit> visits;
}

Visit

import java.util.Date;

class Visit {
    Date date;
    String description;
    Pet pet;
}

results matching ""

    No results matching ""