This file contains 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
package sinifnesne; | |
public class SinifNesne { | |
public static void main(String[] args) { | |
/* | |
Nesne ilk oluşturulduğu an | |
yapıcı metot çağırılacaktır | |
*/ | |
Arac araba = new Arac(); | |
} | |
} | |
class Arac{ | |
// Yapıcı Metot (Constructor) oluşturmak | |
public Arac(){ | |
System.out.println("Yapıcı Metot Çağırıldı!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment