분류 전체보기 (33) 썸네일형 리스트형 객체지향프로그래밍(OOP) 개념 - OOP - Object Oriented Programming - Class - A class is a template that defines what an object's data fields and methods will be. - Ex) Class Computer { private String model; private int year; public String getModel() { return model; } public void setModel(String model) { this.model = model; } ... } - Object - An Instance of a class - Ex) Computer com1 = new Computer(); com1.setModel("Apple"); .. 이전 1 2 3 4 5 다음