Once the Movie
class is defined, you can introduce a variable with
Movie
as the variable's data type:
*-- Class name | | *-- Variable name | | v v Movie m;
The syntax is the same as that you use when you introduce a variable
with, say, int
or double
as the data type.