Skip to content

Instantly share code, notes, and snippets.

@mrnirva
Created September 22, 2020 15:06
Embed
What would you like to do?
package abstractclass;
public class SoyutSinif {
public static void main(String[] args) {
// Hayvanlar hayvanlar = new Hayvanlar();
// Bu kesinlikle hata verecektir
// Soyut sınıftan nesne oluşturulamaz
}
}
// abstract ön takısından sonra class yazılır
// Ardından soyut sınıfa bir isim atanır
abstract class Hayvanlar{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment