KwickClips Java · 39 sec · free
What do data members hold?
Short answer. The object's state, like battery.
What do methods give?
Behaviour, like charge().
Remember
| Data members: the state |
| Methods: the behaviour |
Every object knows things and does things. Battery is a data member, the state. Charge is a method, the behaviour. It sets battery to one hundred. Two points. Data members hold state. Methods give behaviour.
This clip is from the full lesson: Classes and Objects — 6 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: CBSE Class 12 Information Technology (802), ICSE Class 9 Computer Applications, ICSE Class 9 Computer Applications, ICSE Class 9 Computer Applications
More KwickClips from this lesson
What is a class?41 sec
What does print(a.name) show after b.name = "Aman"?43 sec
What does riya.marks = 91 do?40 sec
What does type(Student()) print?40 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

