Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Dart interfaces

//Dart has no interface keyword. Instead, all classes implicitly define an interface. Therefore, you can implement any class.

class MockSpaceship implements Spacecraft {
  // ···
}
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #Dart #interfaces
ADD COMMENT
Topic
Name
1+9 =