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;
}
Results
Nothing found. Try another word.
A class is a blueprint and an object is one instance made from it with new. Fields hold data and methods hold behaviour.
class Student {
String name;
}