Content deleted Content added
data -> state data |
تم تصحيح خطأ مطبعي Tags: Reverted references removed Mobile edit Mobile app edit iOS app edit |
||
Line 1:
A '''method''' in [[object-oriented programming]] (OOP) is a [[Procedure (computer science)|procedure]] associated with a [[Message passing|message]] and an [[Object (computer science)|object]]. An object consists of ''state data'' and ''behavior''; these compose an [[Interface (computing)|''interface'']], which specifies how the object may be utilized by any of its various consumers. A method is a behavior of an object parametrized by a consumer.
Data is represented as [[Property (programming)|properties]] of th
In [[class-based programming]], methods are defined within a [[class (computer science)|class]], and objects are [[Instance (computer science)|instances]] of a given class. One of the most important capabilities that a method provides is ''[[method overriding]]'' - the same name (e.g.,
Methods also provide the interface that other classes use to access and modify the properties of an object; this is known as [[Encapsulation (computer programming)|''encapsulation'']]. Encapsulation and overriding are the two primary distinguishing features
==Overriding and overloading==
|