[JAVA] Human type

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

Human type
Pass type
Directory type
Java type conversion
[Swift] Type type ~ Enumeration type ~
Enum (enumeration type)
[JAVA] Stream type
[Java] Enumeration type
Java Optional type
Chart type Ruby
UITextField event type
Java double type
[Swift] Type type ~ Structure ~
Studying Java-Part 3-Type