Basic data type(Originally prepared mold)In addition to the variables created by defining the contents in the class
It is called a class type variable. So what is a Human type variable?
int num;
String name;
Human human;
A variable that has the parameters of the name and date of birth created earlier(object)Will be.
In other words, creating an object means creating a class type variable that you define yourself.
Class type ∈ Int type, String type and other basic data types and reference types are included.
public class human {
        String name;
        int birthday;
}
public class HumanTest{
	public static void main(String[] args){
          Human human = new Human();
	}
}
        Recommended Posts