types and classes Flashcards
1
Q
type
A
collections of related values
2
Q
classes
A
collections of types that support certain overloaded methods
3
Q
statically typed
A
types are determined at compile time
4
Q
strongly typed
A
the type cannot be changed once assigned to a value
5
Q
type errors
A
applying a function to arguments of the wrong type
6
Q
what is the difference between a list and a tuple
A
tuples are finite and can be different types
7
Q
function
A
a mapping of values of one type to another
8
Q
polymorphic functions
A
its type contains one or more type variables
9
Q
what makes a polymorphic function overloaded
A
if its type contains one or more class constraints