클래스(Class)틀이며 만들어 낼 객체의 속성과 메서드의 집합을 담아놓은 것객체(Object)인스턴스(Instance)💡 AWS 클라우드의 가상 서버를 인스턴스라고 하기도 함

객체 실습
package programmers;
public class Person {
	
	// 멤버변수(속성)
	String name;
	int IQ;
	int str;
	
	
	// 생성자
	public Person(String name, int IQ, int str) {
		this.name = name;
		this.IQ = IQ;
		this.str = str;
	}
	
	public Person() {
		this.name = "leesfact";
		this.IQ = 156;
		this.str = 999;
	}
	
	public void levelup() {
		this.IQ += 1;
		this.str += 1;
		System.out.println(this.name + "의 지능과 힘이 증가했습니다! " + this.IQ + "/" + this.str);
		
	}
	
	public static void main(String[] args) {
		Person a = new Person(); // 객체 -> 인스턴스
		a.levelup();
		
		Person b = new Person("홍철",999, 0);
		b.levelup();
	}
}
