01장 자바 개요

Array

Array는 객체의 reference 들을 담고 있는 객체이다

String[] wordList = ["one", "two", "three"];

Random

Random이란 논리적으로 예측할 수 없는 것

일반적으로 Python이나 Java의 Random은 대부분 True Random과 유사한 결과값을 내놓는 Pseudo Random이다.

Control Flow

Decision-making

Looping

Braching

  • break
  • continue
  • return

Hashing

The process of transforming any given key or a string of characters into another value

02장 스토리 기반 객체 지향 프로그래밍 이해

Interitance

아래와 같이 같이 클래스를 4개 만들고 method들을 하나하나 구현한다면 관리할 method 수가 8개가 된다.

이건 너무 많다!

따라서 중복되는 코드들을 하나의 클래스에 넣은 후 상속시키면 관리가 훨씬 편하다

Abstract

abstract 키워드로 선언

실무에서는 Super Class로 새로운 객체를 생성하는 것을 방지하기 위해 사용

public abstract class Shape {
	...
}

Overriding

A feature that allows a subclass to provide a specific implementation of a method that is already provided by one of its super-classes.

class Animal {
    void move() {}
		void eat() {}
}
  
// Inherited class
class Dog extends Animal {
    @Override
    void move()
    {
        System.out.println("Dog's Walking!");
    }
		void bark() {}
}
profile
내꺼니꺼

1개의 댓글

comment-user-thumbnail
2023년 4월 7일

수업노트 업데이트좀 빠르게해줘잉~ㅜㅜ

답글 달기