Last active
August 30, 2019 00:25
-
-
Save denizfurkan/86dbbe2281135b202bfb4af9d27b7fac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ata { | |
public void Kurucu() { | |
System.out.println("Ben Ata Kurucuyum."); | |
} | |
public void Yazdir() { | |
System.out.println("Ata Sınıfındayım."); | |
} | |
} | |
class Ogul extends Ata { | |
public void Kurucu() { | |
System.out.println("Ben Oğul Kurucuyum."); | |
} | |
} | |
public class Main { | |
public static void main(String[] args) { | |
Ogul ogul = new Ogul(); | |
ogul.Yazdir(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment