Interface Kullanımı

Arayüzler, soyut sınıflara benzer.

Arayüzler sadece sınıfta zorunlu olarak tanımlanması gereken metotları belirtmek için kullanılır.

Özellikleri

  • Soyut methodlar ve sabitler içerebilir.
  • Sadece public method tanımı yapılabilir.
  • Aynı sınıf sadece birden fazla interface kullanabilir.

img_10.png

Lesson discussion

Swap insights and ask questions about PHP Temel

Be the first to start the discussion

Ask a question or share your thoughts about this lesson.