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 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