Java Code

22 Tem 2013

If a subclass defines a class method with the same signature as a class method in the superclass, the method in the subclass hides the one in the superclass.
The distinction between hiding and overriding has important implications. The version of the overridden method that gets invoked is the one in the subclass. The version of the hidden method that gets invoked depends on whether it is invoked from the superclass or the subclass. Let's look at an example that contains two classes. The first is Animal, which contains one instance method and one class method:

public class Animal {
    public static void testClassMethod() {

        System.out.println("The class" + " method in Animal.");
    }
    public void testInstanceMethod() {
        System.out.println("The instance " + " method in Animal.");
    }
}

The second class, a subclass of Animal, is called Cat:
Devamı

Android Studio'suna kavuştu

17 May 2013

Android sonunda kendi geliştirme ortamına kavuştu.
Google IO 2013 toplatısında Android Studio yu duyurdu.Daha önce diğer idelere eklenti şeklinde geliştirilen android artık kendi idesine sahip.

Devamı

Example JAVA Code

23 Haz 2012





public class Coordinates {
private int x;
private int y;

Devamı

Welcome

24 Şub 2012

I am Salih,
A computer science and engineering student.This blog will be updated as i learn new stuff about Computer Science and programming.
Welcome again.
Devamı