728x90
객체
-
Java - 객체지향언어Language/Java 2021. 12. 7. 14:46
객체지향언어의 정의 객체(Object)란? - 객체란 세상에 존재하는 모든 것을 의미한다. 즉, 주변에 있는 사물이나 생명체 같은 모든 것들을 말한다. - 프로그래밍에서의 객체는 데이터의 분산을 막기 위해 데이터와 기능을 하나로 묶은 그룹이라고 할 수 있다. 객체지향언어(Object Oriented Langauge)란? - 컴퓨터 프로그래밍의 한 가지 기법으로, 객체를 만들고 객체를 사용하는 프로그래밍 방법을 말한다. - 프로그램을 그저 데이터와 처리방법으로 나누는 게 아닌, 상태와 행위를 가진 객체들을 만들고, 이러한 객체들을 레고 블록처럼 서로 상호작용 하도록 조립해서 하나의 프로그램을 만드는 것을 의미한다. 객체지향언어의 특징 캡슐화(Encapsulation) public class Person {..