Public, private & this

Controlling different variables in different classes. In the below class, the declaration of; private int hour; private int minute; private int second; As private, only the methods within the cat.class…

Continue Reading Public, private & this

Using multiple classes

jamesprogram.java In the above we create a new cat object called catObject. Once we have created a new object, we can access the methods of that class (simpleMessage()) in this…

Continue Reading Using multiple classes