1.

What Is Type-checking In Dart?

Answer»

In Dart, type-checking is USED to check that a VARIABLE hold only specific to a data type.

-----------------------------------------------------------------

String name = 'Smith';

int num = 10;

----------------------------------------------------------------

VOID main() {

String name = 1; // variable Not MATCH

}

In Dart, type-checking is used to check that a variable hold only specific to a data type.

-----------------------------------------------------------------

String name = 'Smith';

int num = 10;

----------------------------------------------------------------

void main() {

String name = 1; // variable Not Match

}



Discussion

No Comment Found