Is it possible to inherit without object initializer?
type BaseEmployee struct{
LastName string
}
type Employee struct {
Name string,
BaseEmployee
}
Right now I have this:
ob := Employee {
FirstName: "Ron"
LastName : BaseEmployee {LastName : "Howard"}
}
BUT I want to achieve something like this:
ob := Employee {
FirstName: "Ron"
LastName : "Howard",//<<<<<<<<<---- how us that possible?
}
Possible?