What is an object, attribute and method? #Object #Attribute #Method

--Originally published at diegotc2016

Object

Wikipedia defines Object as:

“In computer science, an object can be a variable, a data structure, or a function, and as such, is a location in memory having a value and possibly referenced by an identifier.”

Ken’s definition of object:

“Something that has state and behavior”

My definition of Object:

A varible or a function that has a state and behavior

Attribute

Wikipedia defines Attribute as:

“In computing, an attribute is a specification that defines a property of an object, element, or file.”

Ken’s definition of Attribute:

“A value that an object can have (variable)”

My definition of Attribute:

A value given to a variable

Method

Wikipedia defines Method as:

“A method (or message) in object-oriented programming (OOP) is a procedure associated with an object class.

Ken’s definition of Method:

“The implementation of an attribute, kind of a function, but inside a class”

My definition of Method:

Use the attributes or variables in order to perform a certain action

 

 


What is an object, attribute and method? #Object #Attribute #Method