What is method?
- Method is a sequence of instructions that access data from the object, Method do:
- manipulation of data
- mathematical calculations
- monitor the occurrence of an event
What is attribute?
- Variables around the class, with the value of data can be specified in the object
- Variable used to store the value that will be used in the program
- Variable has a type (type), the name and value
|Name and age are attributes (variables) of the class Person|