In a programming language the methods are the actions that affect only one specific object. In a practical example we can say that the main actions are defined as methods. For example, drink(), sleep(), dream() ete. would be called methods. Say Jack is sleeping. Here Jack is a class and sleep() is the method associated with Jack.
![]()



Reply With Quote
Bookmarks