Some terms in Dart are a little bit confusing to newcomers including myself.
This is my understanding, but, I'm not sure wether it's right or not.
Second, are there terms distinguishing properties in a class(not yet initialized) and those in an instance(initialized)? That is to say, between initialized variables and not-yet initialized ones.
Third, is there any class hierarchy diagram for Dart? I have found a very simple one, but not like those of other languages.
Fourth, I have guessed the sentence (A) is derived from the sentence (B). Is it right?
(A) int x = 1;
(B) var x = int(1); //int() is the default constructor of class int. All the same to String, double, Map, List
...
I want to say thank you all for a few Korean students learning Dart.
class
here. Class usually refers to statics (see above)()
or (arg1, arg2, ...)
void someFunction() => doSomething();
void someFunction(int a) { doSomething(); }
class A {
void someMethod() {
var anonymousFunction = () {
doSomething();
};
anonymousFunction();
}
}
var a = new A();
new A();
creates an instance of A
. a
refers an instance of a
(object).
var x = 5;
creates an instance of int
and x
refers this instance (object).
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments