Alyce 2015. 11. 8. 07:50

렉쳐1: Head First OOAD - Chapter 1


UML 클래스 다이어그램은 Constructor을 보여주지 않는다.

다이어그램 내부: 클래스이름/Variables/Methods 로 구성되어 있다.

원하는 기타 찾아주는 코드


Great software in 3 easy steps

1. Make sure your software does what the customer wants it to do.

2. Apply basic OO principles to add flexibility.

3. Strive for a maintainable, reusable design.

What is enum?

Enums are enumerated types. Enumerated typs let you define a type name, like Wood, and then a set of values that are allowed for that type (like COCOBOLO, SITKA, and MAHOGANY). Then, you refer to a specific value like this: Wood.COCOBOLO.

어렵당..아무래도 다시 봐야할듯

예시에는 OO Principle 중에 Encapsulate what varies를 위해 GuitarSpec클래스를 만들어서 거기다 관련 properties를 전부 집어넣음(guitar details) -> Anytime you see duplicate code, look for a place to encapsulate!

Encapsulation benefit: you can protect the data in your class from the rest of your app by making that data private. you can change one part without having to change all the other parts.

Loosely coupled mean?

Loosely coupled is when the objects in your application each have a specific job to do, and they do only that job. So the functionality of your app is spread out over lots of well-defined objects, which each do a single task really well.