| |
|
What is a class member? What is an object?
The entities like events, properties, fields and functions encapsulated within a class
are called class members. A constructor of a class that resides within it is also a form
of a class member.
When we instantiate a class in order to use its encapsulated class members, this instantiated
class entity is called the object.
Difference between class & object
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| |