Lesson: Object-Oriented Programming Concepts

=Lesson: Object-Oriented Programming Concepts= Java 수업: 객체 지향 프로그래밍의 개념 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.



만약 여러분이 이전에 객체 지향 프로그래밍을 사용해 본 적이 없었다면 그 어떤 코드를 작성하기 전에 몇몇 가지 개념에 대해 알아볼 필요가 있을겁니다.

이 수업은 objects, classes, inheritance, interfaces, 그리고 packages 에 대해 소개할 것 입니다.

각각의 논고는 자바 프로그래밍 언어의 문법을 소개함과 동시에 이러한 개념들이 실제 세계와 어떤 연관이 있는지에 중점을 둡니다.



What Is an Object?
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.



Object 는 state와 behavior 과 관련된 소프트웨어의 묶음입니다. 소프트웨어 Object 들은 여러분이 일상생활에서 찾을 수 있는 실존하는 물체의 본보기로서 사용됩니다.



이 수업은 object 내에서 state 와 behavior 가 어떻게 object 를 대신(대변)하는지 설명하고 data encapsulation(데이터 캡슐화)에 대해 소개할 것 입니다.



또한 데이터 캡슐화를 여러분의 소프트웨어의 설계에 사용함으로써 생기는 장점에 대해서도 설명할 것 입니다.



What Is a Class?
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.

<p style="margin-top:0px;margin-bottom:0px;">

What Is Inheritance?
<p style="margin-top:0px;margin-bottom:0px;">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?
<p style="margin-top:0px;margin-bottom:0px;">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?
<p style="margin-top:0px;margin-bottom:0px;">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.

Questions and Exercises: Object-Oriented Programming Concepts
<p style="margin-top:0px;margin-bottom:0px;">Use the questions and exercises presented in this section to test your understanding of objects, classes, inheritance, interfaces, and packages.