본문 바로가기
Java 배우기

Lesson: Classes and Objects 단원: 클래스와 객체

by 노화방지 Anti-aging Hairstyle 2016. 1. 5.
반응형

단원: 클래스와 객체 Lesson: Classes and Objects


자바 프로그래밍 언어의 기초를 알고 있다면, 클래스 만드는 방식을 배울 수 있습니다.
이 단원에는 멤버 변수, 메소드생성자 선언하기가 포함된, 클래스 정의하기에 대한 정보가 있습니다.

객체를 생성하기 위하여 클래스 사용 방법생성한 객체의 사용 방법을 배울 것입니다.

이 단원에는 다른 클래스 안에서의 중첩(nesting) 클래스 및 열거(enumerations)도 포함되어 있습니다
With the knowledge you now have of the basics of the Java programming language, you can learn to write your own classes. In this lesson, you will find information about defining your own classes, including declaring member variables, methods, and constructors.

You will learn to use your classes to create objects, and how to use the objects you create.

This lesson also covers nesting classes within other classes, and enumerations

Classes

이 섹션은 클래스의 구조, 그리고 필드, 메소드, 생성자의 선언 방법을 보여줍니다.
This section shows you the anatomy of a class, and how to declare fields, methods, and constructors.

Objects

이 섹션은 객체 생성하기와 객체 사용하기를 다룹니다.
객체를 인스턴스로 만드는 방법, 그리고, 일단 인스턴스화 된 후,  객체의 인스턴스 변수와 메소드에 접근하기 위한 dot 운영자 사용방법을 배웁니다.

This section covers creating and using objects. You will learn how to instantiate an object, and, once instantiated, how to use the 

dot operator to access the object's instance variables and methods.

More on Classes

이 섹션은 객체 참조 사용에 의존하는 보다 많은 클래스의 측면과, 앞 섹션에서 배운  dot

연산자: 메소드로부터 값 리턴하기, 키워드 this,

클래스 멤버 대 인스턴스 멤버, 접근 제어를 다룹니다.

This section covers more aspects of classes that depend on using object references and the 

dot operator that you learned about in the preceding section: returning values from methods, the this keyword, class vs. instance members, and access control.

Nested Classes

Static nested classes, inner classes, anonymous inner classes, local classes, lambda expressions이 커버됩니다.
또한 어떤 approach를 언제 사용지에 대한 논의도 있습니다.
Static nested classes, inner classes, anonymous inner classes, local classes, and lambda expressions are covered. There is also a discussion on when to use which approach.

Enum Types

이 섹션은 상수 세트를 정의하고 사용할 수 있게 해주는 enumerations, specialized 클래스를 다룹니다.
This section covers enumerations, specialized classes that allow you to define and use sets of constants.



반응형

'Java 배우기' 카테고리의 다른 글

Declaring Classes 클래스 선언하기  (0) 2016.01.05
Classes 클래스  (0) 2016.01.05
Questions and Exercises: Control Flow Statements  (0) 2016.01.05
Summary of Control Flow Statements  (0) 2016.01.05
Branching Statements  (0) 2016.01.05

댓글