Skip to content

Instantly share code, notes, and snippets.

@mrnirva
Created September 22, 2020 12:13
Show Gist options
  • Save mrnirva/37e9f1e94a09fa0e8263c4027358bc1b to your computer and use it in GitHub Desktop.
Save mrnirva/37e9f1e94a09fa0e8263c4027358bc1b to your computer and use it in GitHub Desktop.
class Arac{
}
// Önce ana sınıfın adı girilir
// Daha sonra extends kelimesi
// Son olarak miras alınacak sınıf girilir
class Kamyon extends Arac{
}
class Otomobil extends Arac{
}
class Motorsiklet extends Arac{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment