Classes as a Data Type
A data type is an attribute of data that tells the compiler or interpreter how the programmer intends to use the data.
In Godot, GDScript classes are reference types (objects).
var example: Node2D = Node2D.new() # variable example is a Node2D data type
You are also able to cast data types:
var example: Node = Node2D.new() as Node # cast Node2D instanced object as Node
Resources
Github Project:
Godot Tutorials Resources