seunGit / TIL-TodayILearned

πŸ”₯ Today I Learned
https://github.com/seunGit/TIL-TodayILearned/issues
1 stars 0 forks source link

POJO #45

Open seunGit opened 1 year ago

seunGit commented 1 year ago

πŸ“Œ POJO

POJO 쑰건

POJO 예

POJOκ°€ μ•„λ‹Œ μ½”λ“œ 1

public class Cat extends Animal {
    int age;
    String name;
}

POJOκ°€ μ•„λ‹Œ μ½”λ“œ 2

public class Cat implements MakesNoise {
    int age;
    String name;
}

POJOκ°€ μ•„λ‹Œ μ½”λ“œ 3

@Entity
public class Cat {
    int age;
    String name;
}

POJO μž₯점