Created
September 20, 2020 14:19
-
-
Save mrnirva/7e274af6bf3189888a164d4872df70f9 to your computer and use it in GitHub Desktop.
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