What are attributes and behaviors in Java?

Attributes are the characteristics of the class that help to distinguish it from other classes. Behaviors are the tasks that an object performs . A person’s attributes, for example, include their age, name, and height, while their behaviors include the fact that a person can speak, run, walk, and eat.

Sizin İçin Seçtik  Which Lang is not case sensitive?

Leave a Reply

Your email address will not be published. Required fields are marked *