проверь связаны ли у меня все 3 класса в коде и обьясни каждую строчку import java.util.Objects;

class Video {
    private String name;
    private String genre;
    private long viewCount;
    private short rating;
    private double duration;
    private boolean isAvailable;

    public Video(String name, String genre, long viewCount, short rating, double duration, boolean isAvailable) {
        this.name = name;
        this.genre = genre;
        this.viewCount = viewCount;
        this.rating = rating;
        this.duration = duration;
        this.isAvailable = isAvailable;
    }

    public String getName() {
        return name;
    }

    public String getGenre() {
        return genre;
    }

    public long getViewCount() {
        return viewCount;
    }

    public short getRating() {
        return rating;
    }

    public double getDuration() {
        return duration;
    }

    public boolean isAvailable() {
        return isAvailable;
    }

    public void setDuration(double duration) {
        this.duration = duration;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Video)) return false;
        Video video = (Video) o;
        return viewCount == video.viewCount &&
                rating == video.rating &&
                Double.compare(video.duration, duration) == 0 &&
                isAvailable == video.isAvailable &&
                Objects.equals(name, video.name) &&
                Objects.equals(genre, video.genre);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, genre, viewCount, rating, duration, isAvailable);
    }
}class Bid {
    private String bidName;
    private String genre;
    private String name;
    private long viewCount;
    private short rating;
    private double duration;
    private boolean isAvailable;

    public Bid(String bidName, String genre, String name, long viewCount, short rating, double duration, boolean isAvailable) {
        this.bidName = bidName;
        this.genre = genre;
        this.name = name;
        this.viewCount = viewCount;
        this.rating = rating;
        this.duration = duration;
        this.isAvailable = isAvailable;
    }

    public String getBidName() {
        return bidName;
    }

    public void setBidName(String bidName) {
        this.bidName = bidName;
    }

    public String getGenre() {
        return genre;
    }

    public String getName() {
        return name;
    }

    public long getViewCount() {
        return viewCount;
    }

    public short getRating() {
        return rating;
    }

    public double getDuration() {
        return duration;
    }

    public boolean isAvailable() {
        return isAvailable;
    }
}import java.util.Objects;

class Genre {
    private Video video;
    private int time;

    public Genre(String name, String genre, int time, long viewCount, short rating, double duration, boolean isAvailable) {
        this.video = new Video(name, genre, viewCount, rating, duration, isAvailable);
        this.time = time;
    }

    public String getName() {
        return video.getName();
    }

    public String getGenre() {
        return video.getGenre();
    }

    public long getViewCount() {
        return video.getViewCount();
    }

    public short getRating() {
        return video.getRating();
    }

    public double getDuration() {
        return video.getDuration();
    }

    public boolean isAvailable() {
        return video.isAvailable();
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    @Override
    public boolean equals(Object o) {
        if (!(o instanceof Genre)) return false;
        Genre genre = (Genre) o;
        return time == genre.time && video.equals(genre.video);
    }

    @Override
    public int hashCode() {
        return Objects.hash(video, time);
    }
}
class RadioStationDemo {
    public static void main(String[] args) {
        Video genreVideo = new Video("MACAN - TSM", "Rap", 3, (short) 5, 40.0, true);
        Bid bid = new Bid("FRIENDLY THUG 52 NGG - AMMO", "Underground rap", "Street racing", 32, (short) 35, 2.8, false);

        System.out.println("Video Name: " + genreVideo.getName());
        System.out.println("Genre: " + genreVideo.getGenre());
        System.out.println("View Count: " + genreVideo.getViewCount());
        System.out.println("Rating: " + genreVideo.getRating());

        System.out.println("Bid Name: " + bid.getBidName());
        System.out.println("Bid Video Name: " + bid.getName());
        System.out.println("Bid Genre: " + bid.getGenre());
        System.out.println("Bid View Count: " + bid.getViewCount());
        System.out.println("Bid Rating: " + bid.getRating());

        genreVideo.setDuration(2);
        bid.setBidName("Overnight in St. Petersburg");

        System.out.println("Updated Genre Time: " + genreVideo.getDuration() + " min");
        System.out.println("Updated Bid Name: " + bid.getBidName());
    }
}