object array

    [자바/JAVA] 프로그래밍 - 객체 배열(Object Array) 실습 예제

    Employee 클래스 생성 package com.hw1.model.vo; public class Employee { private int empNo; private String empName; private String dept; private String job; private int age; private char gender; private int salary; private double bonusPoint; private String phone; private String address; public Employee() { } public Employee(int empNo, String empName,int age, char gender, String phone, String address) {..

    [자바/JAVA] 프로그래밍 - 객체 배열(Object Array)

    Book 메소드 생성 package com.kh.chap01_oneVSmany.model; public class Book { // 필드부 // 도서명, 저자, 가격, 출판사 private String title; private String author; private int price; private String publisher; // 생성자 // 기본생성자 public Book() {} // 전체 매개변수 생성자 public Book(String title, String author, int price, String publisher) { this.title = title; this.author = author; this.price = price; this.publisher = publisher; ..