Module 4 Flashcards
A _________ is a set of statements to perform a specific task.
function
_________ organize the program into logical blocks of code.
Functions
_________ may be called to access code.
functions
_________ are the building blocks of readable, maintainable, and
reusable code.
Functions
_________ {
// main function goes here
}
main()
A function must be called to execute it. This process is
termed as _________.
function invocation
_________ may also return value along with the control, back
to the caller.
Returning functions
The _________ can be any valid data type.
return_type
The _________ statement is optional. If not specified, the
function returns null.
return
The return statement is optional. If not specified, the
function returns _________ .
null
The _________ of the value returned must match the return
type of the function.
data type
A function can return at the most _________ value. In other
words, there can be only _________ return statement per function.
one
_________ are a mechanism to pass values to functions.
Parameters
_________ form a part of the function’s signature.
Parameters
The _________ values are passed to the function during its invocation.
parameter
_________ is a programming language model in which programs are organized around data, or objects, rather than functions and logic.
Object-oriented programming (OOP)
An object is an _________ meant to represent a component of a program.
abstraction
_________ can be created, destroyed, given attributes, and made
to perform actions.
Objects
Every object belongs to a _________.
class
The class of an object is its _________.
type
Objects of the same class have the same ________ variables and methods available to them
instance
a _________ is a blueprint for creating objects (a particular data structure), providing initial values for state (member variables or attributes), and implementations of behavior (member functions or methods).
class
Use the _________ keyword to declare a class in Dart.
class
A class definition starts with the keyword class followed by the _________
class name
the class body enclosed by a pair of _________.
curly braces
A _________ is any variable declared in a class. They represent data
pertaining to objects.
field
Allows the program to initialize and retrieve the values of
the fields of a class.
Setters and Getters
A _________ getter/ setter is associated with every class. However, they can be overridden by explicitly defining a setter/getter.
default
responsible for allocating memory for the objects of the class.
Constructors
represent actions an object can take.
Functions
Functions are also at times referred to as _________.
methods