What are methods? How are these related to Objects?
Answers
Answered by
14
A method in object-oriented programming is a procedure associated with a class. A methoddefines the behavior of the objectsthat are created from the class. Another way to say this is that amethod is an action that an object is able to perform. The association between method and class is called binding.
Answered by
9
A method is an operation associated to an object. The 'behaviour' of an object is represented through associated functions, which are called methods.
Similar questions
Computer Science,
6 months ago
Social Sciences,
6 months ago
Science,
1 year ago
Physics,
1 year ago
Chemistry,
1 year ago