강의

멘토링

로드맵

Inflearn Community Q&A

umkyungil8399's profile image
umkyungil8399

asked

GO Language Programming Core Basics Introduction Course, Easy and Quick to Complete

User-defined type

[재 질문]구조체가 참조형 인가요

Written on

·

180

0

알려주신 링크를 봐도 제가 잘 이해를 못하는건지 구조체 자체가 참조형이라는 정확한 설명이 없는거 같습니다만..혹시 mutable개체 라는게 참조형이라는 건지요? 강의 중에 구조체를 %v로 출력 해 보면 &가 붙어서 출력이 되기에 구조체 라고 들었습니다만...잘 이해가 안되는데 강사님의 생각을 알려주시면 감사하겠습니다.

go

Quiz

What is the main mechanism in Go for bundling state (state) and behavior (behavior) to implement object-oriented characteristics?

Classes

Interfaces

Structs

Enumerated Types (Enums)

Answer 1

0

niceman님의 프로필 이미지
niceman
Instructor

네 안녕하세요.

기초에 나와 있는 내용입니다.

구조체 : 참조형이고 역참조가 가능합니다.

mutable : 한 번 할당 후 수정이 가능한 자료형입니다.

immutable : 한 번 할당 후 수정이 불가능한 자료형입니다.

https://mingrammer.com/gobyexample/structs/

위에 정말 쉽게 나와 있는 링크를 첨부드립니다.

umkyungil8399's profile image
umkyungil8399

asked

Ask a question