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

User David Weng
by
7.3k points

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.

User Andy Meissner
by
8.1k points

No related questions found