본문 바로가기

(●'◡'●) Categories 🐅386

JAVA 프로그래밍 6.5 6.5 Information hiding revisited Information hiding은 Instance 변수는 private로 하고 이를 읽고 쓸 때 public 메소드를 만들어서 접근하자고 재정의 했었다. 그런데 그대로 했는데도 문제가 발생할 수 있더라!!! Insecure 한 사례가 어떤 경우인지 살펴보자고 하셨다. Instance variable의 Type이 클래스 일 때 주의할 필요가 있다. private로 선언을 했는데 Hacking 당하는 경우가 발생했다. 어떻게 가능한 것일까?? Object를 합법적으로 public 매소드를 이용해서 넘겨주기는 했지만 Object의 주소가 넘어갔다는 것이 문제가 된다. Primitive type, cloning Object의 주소를 넘긴 것이 문제가 .. 2021. 10. 28.
JAVA 프로그래밍 6.4 6.4 Overloading the same, a different signature, The return type 같은 이름을 가진 메소드가 여러개 있는 것을 Overloading 이라고 한다. Signature는 메소드의 Arguement의 타입, 개수, 순서 등등을 말한다. Return 타입은 signature의 속성이 아니다. The combination of method name and number and types of arguements, in order Overload 의 경우가 아니다. 2021. 10. 28.
JAVA 프로그래밍 6.3 6.3 Designing Methods Top-Down Design Private helper method Divide and conquer 방식으로 나눠서 공략하는 것 Public은 바깥에서 필요로 하는 업무를 수행하도록 Public으로 정의되어 있고 Public 메소드를 구성하고 도와주기 위해서 private로 선언한다. driver program, stub 테스트 하는 프로그램을 드라이버 프로그램이라고 부르기도 한다. 드라이버 프로그램이 테스트 하는 단계를 두 가지로 부를 수 있다. 하나는 Bottom up 하나는 Top down 2021. 10. 28.
HTML Avoid one- or two-word titles. Use a descriptive phrase, or a term-definition pairing for glossary or reference-style pages. Search engines typically display about the first 55–60 characters of a page title. Text beyond that may be lost, so try not to have titles longer than that. If you must use a longer title, make sure the important parts come earlier and that nothing critical is in the part .. 2021. 10. 27.
논리 설계 HW9 2021. 10. 27.
논리설계 HW8 2021. 10. 27.
논리설계 HW7 2021. 10. 27.
논리설계 HW6 2021. 10. 27.
논리설계 HW5 2021. 10. 27.
논리설계 HW4 2021. 10. 27.