java coding adventure

A word on Java Types.

Variables In Java, you use variables to store some information. Like in Calculator class you use 'model' and 'producentName' to store the information respectively about calculator's model and producer's name: In class Potato in main() method you also have a variable: Variables have a name (the word you use to refer to the value the variable… Continue reading A word on Java Types.

Advertisements
java coding adventure

Inside the hut: class attributes

When I studied electronics everyone was using scientific calculator made by Casio. It model was fx350ES PLUS. Every second person had the same one. Like a real object has its own characteristics, so does Java Objects. Those characteristics are called attributes. The Calculator class you already know also has attributes describing it such as model or a producer:… Continue reading Inside the hut: class attributes