✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Дан фрагмент кода на языке Go. Что будет выведено на экран в результате исполнения этого фрагмента?
type A struct{
value
int}
type B
struct{
value
int}
type C
struct{
A
B
value
int}
func NewC(val int) C{
return C{A{val}, B{2*val}, 0
}
}
func main() {
var obj = NewC(
5)
fmt.Print(obj.value)
}