Object-Oriented Programming Concepts

이성준·2023년 6월 27일

객체 지향 프로그래밍 개념

If you've never used an object-oriented programming language before, you'll need to learn a few basic concepts before you can begin writing any code. This lesson will introduce you to objects, classes, inheritance, interfaces, and packages. Each discussion focuses on how these concepts relate to the real world, while simultaneously providing an introduction to the syntax of the Java programming language.

이전에 객체 지향 프로그래밍 언어를 사용해본 적이 없다면, 코드를 작성하기 전에 몇 가지 개념을 알아야할 필요가 있다. 이 수업은 당신에게 객체, 클래스, 상속, 인터페이스, 패키지에 대해 알려줄 것이다. 각 본문은 이 개념들이 실제와 어떤 관련이 있는지 초점이 맞추어져있고, 동시에 자바 프로그래밍 언어 구문을 제공합니다.

What is an Object?

An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life. This lesson explains how state and behavior are represented within an object, introduces the concept of data encapsulation, and explains the benefits of designing your software in this manner.

객체는 관련된 상태와 행동의 보따리이다. 소프트웨어 객체는 종종 실제 객체를 모델링하는데 종종 사용된다. 이 수업은 상태와 행동이 객체에서 어떻게 표현되는지 설명하고, 데이터 캡슐화 개념에 대해 소개하며, 이러한 방식의 소프트웨어 디자인이 어떤 이점이 있는지 설명한다.

What is a Class?

A class is a blueprint or prototype from which objects are created. This section defines a class that models the state and behavior of a real-world object. It intentionally focuses on the basics, showing how even a simple class can cleanly model state and behavior.

클래스는 객체를 만들 수 있는 청사진 혹은 객체의 원형이다. 이 부분에서는 클래스를 실제의 객체의 상태와 행동을 설계하는 것으로 정의한다. 의도적으로 기본에 초점을 맞추고, 어떻게 간단한 클래스가 상태와 행동을 깔끔하게 설계할 수 있는지 보여준다.

What is Inheritance?

Inheritance provides a powerful and natural mechanism for organizing and structuring your software. This section explains how classes inherit state and behavior from their superclasses, and explains how to derive one class from another using the simple syntax provided by the Java programming language.

상속은 당신의 소프트웨어를 구성하고 구조화하기 위한 강력하고 자연스러운 매커니즘을 제공한다. 이 부분에서는 클래스들이 상태와 행동을 어떻게 그들의 슈퍼 클래스에서 상속하는지 설명하고, 자바 프로그래밍 언어로 작성된 간단한 구문을 이용해 어떻게 다른 클래스에서 하나의 클래스를 파생시키는지 설명할 것이다.

What Is an Interface?

An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface. This section defines a simple interface and explains the necessary changes for any class that implements it.

What Is a Package?

A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage. This section explains why this is useful, and introduces you to the Application Programming Interface (API) provided by the Java platform.

profile
기록

0개의 댓글