Skip to content

Instantly share code, notes, and snippets.

@mrnirva
Created September 20, 2020 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrnirva/7e274af6bf3189888a164d4872df70f9 to your computer and use it in GitHub Desktop.
Save mrnirva/7e274af6bf3189888a164d4872df70f9 to your computer and use it in GitHub Desktop.
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