
5.2 Class Objects and Methods
5.2 Classes and Objects
Look around your classroom. There are students all round. First of all, why have they been
grouped together by your principal? Firstly because they all share common interests, for
example they would like to learn the language Java or they would like to complete their PG
or UG studies. In computer parlance, we can say that all students have the same functionality.
That is why they could be grouped together.
But notice that each student has his own individual attributes. Attributes mean own mem-
ber data like height, weight, marks, attendance, etc. Also notice that there are about 60 students ...