Chapter 4 Flashcards
What is cryptic programming?
Only programmer could understand the code.
What is spaghetti programming?
tangled control structure, especially one using many GOTO statements, exceptions, threads, or other “unstructured” branching constructs
What is structured programming?
One way in
One way out
Does not use GOTO
What is object oriented programming?
organized around objects rather than “actions” and data rather than logic; uses objects
What are the features of object oriented programing?
inheritance, polymorphism, encapsulation
What is encapsulation?
packing of data and functions into a single component
What is an example of class interaction?
*
What is OOP?
Object Oriented Programming
What are action modules called?
Math methods
What is the Math square root shortcut?
Math.sqrt
What does floor rounding mean?
down to nearest whole number
What does ceil rounding mean?
up to nearest whole number
What does round rounding mean?
normal rounding
What is the Math power shortcut?
Math.pow
What is the Math maximum shortcut?
Math.max
What is the Math minimum shortcut?
Math.min
What is the absolute value shortcut?
Math.abs
What is polymorphism?
a feature of a programming language that allows routines to use variables of different types at different times
What is concept of inheritance?
special things that need to be specified that make the object unique from the class (ex. Class: car Object: Limo has many seats)
What do attributes mean?
What it is; noun
What do methods mean?
What it does; verb
What is inheritance?
special things that need to be specified and are “inherited”