type Employee struct { Name string ID string } type Manager struct { Employee // 임베딩 Age int }
위처럼 Manager 가 Employee 를 가진 구조이지만 이름을 부여하지 않은 상태를 말한다
임베딩이 되면 메소드나 속성 값을 가진다 이것은 상속의 개념이 아니다