What is an attribute?

It’s a characteristic of a class (of a specific type: int, byte, String, char, object…) that contains important data.



What does “public” means?

Is a modifier and they regulate from where you can access to that part of code.

Public Protected Private
Class Yes Yes Yes
SubClass Yes Yes No
Package Yes Yes No
World Yes No No

Create a website or blog at WordPress.com

Up ↑