Starlit Daily

📚 › Java

6. Classes and objects

A class is a blueprint and an object is one instance made from it with new. Fields hold data and methods hold behaviour.

Show example

class Student {
  String name;
}

← Back to course