Module 1 (Prelim) Flashcards
1.1 Overview 1.2 Comparing Procedural and Object Oriented Programming Concepts 1.3 Creating Java 1.4 Using Data 1.5 Arithmetic Operators 1.6 Understanding Type Conversion
Sets of operations executed in sequence
Procedural programming
Named computer memory locations that hold values
Variables
Two popular approaches to writing computer programs are
- procedural programming
- object-oriented programming
Individual operations grouped into logical units
Procedures
is an extension of procedural programming in which you take a slightly different approach to writing computer programs.
Object-Oriented Programming
Writing object-oriented programs involves: (3)
- Creating classes, which are blueprints for objects
- Creating objects, which are specific instances of those classes
- Creating applications that manipulate or use those objects
Understanding object-oriented programming requires grasping three basic concepts:
- Encapsulation as it applies to classes as objects
- Inheritance
- Polymorphism
- Abstraction (just in case)
a term that describes a group or collection of objects with common properties.
Class
describes what attributes its objects will have and what those objects will be able to do.
class definition
are the characteristics that define an object; they are PROPERTIES of the object.
Attributes
An ___________ is a specific, concrete INSTANCE of a class.
object
Creating an instance is called _______
instantiation
is a set of written instructions that tells the computer what to do
Computer Program
Machine language is a ___________ programming language
low-level
allows you to use a vocabulary of reasonable terms
high-level programming language
set of rules for the language
syntax
translates language statements into machine code
compiler/interpreter
misuse / misspelled programming language
syntax error
freeing program from errors
debugging
Understanding Classes, Objects, and Encapsulation:
Which stands for class, object, and properties for the example below?
Dog:
Breed:
Gender and age:
Dog: class
Breed: object
Gender and age: properties
The values of the properties of an object are referred to as the object’s ___________
state
Besides defining properties, classes define ___________ their objects can use.
methods
is a self-contained block of program code that carries out some action, similar to a procedure in a procedural program.
method
if objects are similar to nouns, then methods are similar to verbs. (True or False)
T