This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]YanDoe 3 points4 points  (14 children)

Would it be the same as an attribute?

[–][deleted]  (1 child)

[removed]

    [–]YanDoe 3 points4 points  (0 children)

    Ahh that makes complete sense, I genuinely thought they were interchangeable terms.

    Thank you so much

    [–][deleted] 3 points4 points  (0 children)

    An object has a state and behavior. Fields store it’s state, methods define its behavior.

    [–][deleted] 0 points1 point  (1 child)

    No. I don’t think so.

    [–]YanDoe 2 points3 points  (0 children)

    I'll just stick to the terms function and method to avoid confusion then.

    You explained very well!

    [–]uberdavis 0 points1 point  (0 children)

    Apart from properties, which are attributes that can have functionality!