Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart super constructor

In dart, the subclass can inherit all the variables and methods of the parent class, 
with the use of extends keyword but it can’t inherit constructor of the parent class. 
To do so we make use of super constructor in the dart. 

Child_class_constructor() :super() {
...
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #dart #super #constructor
ADD COMMENT
Topic
Name
7+3 =