본문 바로가기

돕자클럽 앱개발 투자 신용대출 재테크 P2P대출63

Summary of Interfaces 인터페이스 요약 인터페이스 요약 Summary of Interfaces 인터페이스 선언에는 메소드 signatures, default 메소드, static 메소드와 상수 정의가 포함될 수 있습니다. 구현을 갖고 있는 유일한 메소드는 default 메소드와 static 메소드입니다.인터페이스를 구현하는 클래스는 인터페이스에 선언된 모든 메소드를 구현해야 합니다.인터페이스 이름은 타입이 사용될 수 있는 어디서도 사용될 수 있습니다. An interface declaration can contain method signatures, default methods, static methods and constant definitions. The only methods that have implementations are defa.. 2016. 1. 5.
Lesson: Annotations Lesson: Annotations 메타 데이터의 형태인 주석은 프로그램의 일부가 아닌 프로그램에 대한 데이터를 제공합니다. 주석들은 주석이 붙은 코드의 작동에 직접적인 영향을 미치지 않습니다.주석의 용도는 아래와 같이 많이 있습니다:Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate. Annotations have a number of uses, among them:컴파일러에 대한 정보 - 컴파일러는 오류를 찾거나 경고를 숨기기 위하여 주.. 2016. 1. 5.
Enum Types 이넘 타입 이넘 타입 Enum Types enum type은 변수를 미리 정의된 1세트의 상수로 만들 수 있는 특수한 데이터 타입입니다. 변수는 미리 정의된 값 중 하나와 동일해야 합니다. 일반적인 예로 나침반의 방향 (NORTH, SOUTH, EAST, WEST의 값)과 요일 등이 있습니다.enum type은 상수이기 때문에, enum type의 필드의 이름은 대문자 입니다. An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must be equal to one of the values that have been predefined for it. Common e.. 2016. 1. 5.
Lambda Expressions 람다 표현식 람다 표현식 Lambda Expressions 익명 클래스의 문제 중 하나는, 메소드가 1개만 포함된 interface인 경우 처럼 익명 클래스 구현이 매우 간단한 경우, 익명 클래스의 구문규칙을 다루기 힘들고 불분명해 보일 수 있다는 점입니다. 위와 같은 경우, 어떤 사람이 버튼을 클릭하면 작업이 수행되도록 하는 것처럼, 일반적으로 functionality를 아규먼트로써 다른 메소드에게 전달하려 합니다. 람다 표현식은 functionality를 메소드 아규먼트로 처리하여, 또는 코드를 데이터로 처리하여 이것이 수행될 수 있게 만들어줍니다. One issue with anonymous classes is that if the implementation of your anonymous class is ve.. 2016. 1. 5.
Anonymous Classes 익명 클래스 익명 클래스 Anonymous Classes 익명 클래스를 이용하면 코드를 보다 간결하게 작성할 수 있습니다.익명 클래스를 이용하면 동시에 클래스를 선언하고 인스턴스화할 수 있습니다. 익명 클래스들은 이름이 없는 것을 제외하고는 로컬 클래스와 같습니다.로컬 클래스를 단 한 번 사용해야 할 경우라면 익명 클래스를 사용하십시오.이 섹션은 다음 토픽들을 다룹니다:Anonymous classes enable you to make your code more concise. They enable you to declare and instantiate a class at the same time. They are like local classes except that they do not have a name. Us.. 2016. 1. 5.
Local Classes 로컬 클래스 로컬 클래스 Local Classes 로컬 클래스들은 블록 안에 정의된 클래스들로써, 중괄호 안의 하나 이상의 선언문의 그룹입니다. 일반적으로 메소드의 몸체 안에 정의된 로컬 클래스들이 있습니다. 이 섹션은 다음 토픽을 다룹니다: Local classes are classes that are defined in a block, which is a group of zero or more statements between balanced braces. You typically find local classes defined in the body of a method. This section covers the following topics:로컬 클래스 선언하기 Declaring Local Classes인크로.. 2016. 1. 5.