0

I didn't understand what is a method?

27th Nov 2015, 2:16 AM
Mr.Green3322
2 Answers
+ 1
Concisely, just like properties which are variables of an object, methods are functions of an object.
6th Mar 2016, 6:09 AM
HongweiChen
- 1
method is 'what action would you associate with that particular object'. for example: while creating an object called clientDetail, you would want to associate 'actions' such as updating the details. so an 'updateDetail' would help you here. this allows you to 'attach the functionality' of updating the details with that object.
22nd Feb 2016, 1:44 PM
Tushar Mohan
Tushar Mohan - avatar