define methods. computer science
Answers
Answered by
2
Explanation:
A method in object-oriented programming (OOP) is a procedure associated with a message and an object. ... In class-based programming, methods are defined in a class, and objects are instances of a given class.
Hope it will help you�
Please mark me as brainlist
Answered by
8
Answer:
In object-oriented programming, a method is a part of an object. A method allows the object to perform an action, whether this action is to modify itself or to return a value. An example is: public int getOne() { return 1; } This syntax is the same in different programming languages such as Java and C#.
Similar questions