• Corsi
  • Compilatore di codice
  • Discuti
  • Prezzi
  • Squadre
Menu
+ 2

What is the difference between implement and extends??

javainheritancemethodimplementextends
7th Jun 2017, 7:24 PM
Chaman Raghav
Chaman Raghav - avatar
2 Risposte
+ 2
extends is used for inheritance implements is used for deriving from an interface
7th Jun 2017, 8:01 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
0
Extends is for a class, implement for an interface: https://stackoverflow.com/questions/10839131/implements-vs-extends-when-to-use-whats-the-difference
7th Jun 2017, 7:28 PM
Maart
Maart - avatar

Hai spesso domande come questa?

Impara in modo più efficiente, gratuitamente:

  • Introduzione a Python

    7,1M studenti

  • Introduzione a Java

    4,7M studenti

  • Introduzione a C

    1,5M studenti

  • Introduzione a HTML

    7,5M studenti

Vedi tutti i corsi
Popolare oggi
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Sololearn course
1 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
How do I keep myself motivated in coding
0 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes