Classes
Up until now all the data types you have used - int
, String
, etc. -
came with Java. This works for awhile, but eventually you will need to define your own types.
The way to do this is with a "class."
class Person {
}
Up until now all the data types you have used - int
, String
, etc. -
came with Java. This works for awhile, but eventually you will need to define your own types.
The way to do this is with a "class."
class Person {
}