안녕하세요이번 글에서는 클래스와 객체, 생성자, 캡슐화, 메서드, 속성(Property) 등을간단한 BankAccount(은행 계좌) 예제로 익혀보겠습니다. 1. 클래스와 객체 기본클래스(class): 설계도객체(object): 설계도로부터 생성된 실제 물건(인스턴스)class BankAccount: # 생성자: 객체가 만들어질 때 자동 실행 def __init__(self, owner: str, balance: int = 0): self.owner = owner self._balance = balance # 관례상 _로 시작하면 내부용(캡슐화 암시) # 입금 def deposit(self, amount: int): if amount self..