Right after inheritance we introduce interfaces. In Eclipse we create an interfaces package and define an interface that will give classes a "read" capability. We explain why interface methods are bodyless (abstract), why they are considered public whether you write it or not, and why every class that implements the interface must provide the method body.
Sıfırdan Spring Boot serisinin 8. bölümü Opendart Akademi YouTube kanalında yayında. Bu seri, canlı Java Spring Boot eğitimimizin ders kayıtlarından hazırlanıyor; Java'nın temelinden başlayıp Spring Boot'a doğru ilerliyoruz.
▶ Dersi YouTube'da izleSerinin tüm bölümleri
Bu derste neler var?
- 00:00 Giriş
- 00:03 Interface nasıl oluşturulur?
- 00:37 interfaces paketini oluşturmak
- 01:36 Interface adlandırma (başına I harfi)
- 02:06 Senaryo: sınıflara okuma yeteneği kazandırmak
- 03:17 Interface'e metot yazmak
- 04:36 Interface metotları neden hep public?
- 05:09 Dışarıdan parametre alan metot imzası
- 05:52 Gövdesiz (abstract) metot: "body" hatası
- 06:29 Arayüzden türeyen sınıflar metodu doldurmak zorunda
- 07:38 Paketler ve jar dosyaları: kodu yeniden kullanmak
- 08:02 Kapanış
Opendart Akademi
Learn Spring Boot with live instructor-led lessons
These videos are recordings from our Java Spring Boot course. The full course covers Java, Spring Boot, REST APIs, databases and real projects; you can ask the instructor when you get stuck.
← Previous: Inheritance in Java (extends) · Playlist: Sıfırdan Spring Boot · Subscribe on YouTube
Instructor: İbrahim Gökyar (Opendart Akademi)



