Defining Classes
Page 1 of 1
Defining Classes
Defining Classes
A class is a category of things; an object is a specific instance of a class. A class definition is a set of
program statements that lists the characteristics of each object and the methods each object can use.
A class definition can contain three parts:
- Every class has a name.
- Most classes contain data, although this is not required.
- Most classes contain methods, although this is not required.
A class is a category of things; an object is a specific instance of a class. A class definition is a set of
program statements that lists the characteristics of each object and the methods each object can use.
A class definition can contain three parts:
- Every class has a name.
- Most classes contain data, although this is not required.
- Most classes contain methods, although this is not required.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|