DART Basics Flashcards
1
Q
For what are variables?
A
To temporarily store data
2
Q
For what are functions?
A
to execute code ‘on demand’
3
Q
For what are types?
A
to analyse your code before you run/test it
4
Q
assign a value to a var
A
=
5
Q
how to name variables
A
camelCase
6
Q
what is expected from a function
A
return
7
Q
what you can input to functions
A
arguments
8
Q
blueprint of an object
A
class
9
Q
instance field/properties
A
class level variables
10
Q
access class properties/methods
A
myself.name
11
Q
function that dart will execute 1st
A
Main()
12
Q
instantiate a class
A
Class()
13
Q
classes also act as
A
types
14
Q
where are arguments only available
A
inside function body {}
15
Q
to make constructor method
A
repeat class name like class method without return type