본문 바로가기
반응형

java object3

[자바AP연습문제]05.Writing Classes [자바AP연습문제]05.Writing Classes 문제 정답은 제일 아래 "더보기" 클릭 *05.Writing Classes 단원의 복습 내용은 아래 "더보기" 클릭 더보기 Class - A class defines a type and is used to define what all objects of that class know and can do. Compiler - Software that translates the Java source code (ends in .java) into the Java class file (ends in .class). Compile time error - An error that is found during the compilation. These are also .. 2024. 3. 24.
[자바AP연습문제]02.Using Objects [자바AP연습문제]02.Using Objects * 2.Using Objects Summary를 복습하려면 아래의 "더보기" 클릭 더보기 In this unit, you learned to use objects (variables of a class type) that have been written for you in Java. You learned to use constructors and methods with and without parameters of objects, and built-in Java classes like String, Integer, Double, and Math. class - defines a new data type. It is the formal implementati.. 2024. 3. 21.
[Java Class.01]객체 지향 프로그래밍(Object Oriented Programming) [Java Class.01] 객체 지향 프로그래밍 1.객체란(What is Object?) 객체(Object)란 물리적으로 존재하거나 추상적으로 생각할 수 있는 세상의 모든 물체 같은 것이다. 예를 들어 책, 자동차, 사과 같은 것을 객체라고 할 수 있다. 2.객체의 특성 객체의 특성은 명사적인 특성과 동사적인 특성으로 나눌 수 있다. 명사적인 특성은 "속성"이라고 부르고, 자바에서는 필드(field) 라고 말한다. 동사적인 특성은 "동작"이라고 부르고, 자바에서는 메소드(method) 라고 말한다. 3.객체와 클래스 현실 세계에서 객체는 설계도라고 불리는 "클래스(Class)"를 바탕으로 만든다. 예를들어, "자동차"라는 객체를 만들기 위해서 공장에서는 자동차 "설계도"를 보고 만든다. 이 때의 "자동.. 2024. 2. 18.
728x90
반응형