Skip to content

Instantly share code, notes, and snippets.

@mrnirva
Created September 22, 2020 15:06
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/d9be39ed8c2c75bb95fd8f4a898c684f to your computer and use it in GitHub Desktop.
Save mrnirva/d9be39ed8c2c75bb95fd8f4a898c684f to your computer and use it in GitHub Desktop.
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