Answers A+ Grade 100%.
classes are... - definitions of a group of like things called objects (abstract constructs)
classes and objects have attributes that... - describe them and functions which are actions they
perform (or have performed on them)
classes/objects are like... - nouns
attributes are like... - adjectives
functions are like... - verbs
object-oriented programming - is based on the premise that all problems can be broken down
into smaller problems and all problems deal with the interaction of objects in the real world
(communication between objects)
intrinsic data types - are those organizations of bits which the CPU can understand and work
with - int, char, double, bool
user-defined types (UDTs) - are classes that are created to handle more sophisticated data such as
strings, dates, cards, decks, hands, vehicles, animals, etc.
object-oriented programming uses inheritance to... - allow us to build onto existing classes and
create additional functionality - generic animals can be customized into lions, tigers and bears
(oh my!)
we can override functions of the parent class to... - create customized actions in the child class -
animals all makeSound() but some people have to Google the sounds that other animals like say
a fox make
overloading functions simply mean... - we have created more than one implementation of a
function using the same name but different parameters - for example we might have two
functions which calculate distance between points one of which uses four parameters (double x1,
double y1, double x2, double y2) and another which uses the Point class for its parameters like
(Point first, Point second) - both calculate distance the same way, but use different types of
parameters
mathematical functions are the same for C++ as they are for us with one exception: - integer
division results in an integer with a remainder (the modulus) so 7/3 would return 2 and 7%3
would return 1
you can force numbers from integer to decimal by... - using the inline typcasting of (double) or
by just multiplying one of the integer values by 1.0