Answers for "what is the difference between a property and method"

1

what is the difference between a property and method

The vehicle has: Number Plate, Brand, Model, Color. Those are properties.

The vehicle can: Turn On, Accelerate, Brake, Horn. Those are methods.
Posted by: Guest on May-13-2021
0

what is the difference between a property and method

Properties define the characteristics of an object such as Size, 
Color etc. or sometimes the way in which it behaves. 
A method is an action that can be performed on objects. 
For example, a dog is an object.
Posted by: Guest on May-13-2021

Code answers related to "what is the difference between a property and method"

Browse Popular Code Answers by Language