asked 27.2k views
2 votes
Objects have methods and properties. what are methods and properties?

1 Answer

2 votes

Methods are bits of code, which can be executed. They define the behaviour of the object. Properties are bits of data, contained within the object, they define the state of the object.

answered
User Andy Meissner
by
8.1k points

No related questions found