What is a programming language used for?
To write instructions and tell a computer how to perform tasks.
What is procedural programming?
An approach writing programs as sequences of steps executing top to bottom.
What is object-oriented programming?
A programming approach using classes and objects combining data and functions into one object.
What do attributes and methods represent in an object?
Attributes describe data and methods describe behavior of a real-world entity.
Programming Paradigm
Approach to solving problems with code
Procedural Programming Limits
Hard to reuse, error-prone, data insecure
Object-Oriented Programming
Uses classes/objects to combine data and functions
Object Attributes
Describe data, e.g., color, speed
Class Definition
Blueprint for creating objects with data/methods
Object Instance
Specific entity created from a class
Encapsulation Role
Hides data details and access
Polymorphism Use
Allows methods to process objects differently
Answer 11 questions on Object-Oriented Programming Foundations.
1. What is the defining execution pattern of procedural programming?
2. Which situation best illustrates a major limitation of procedural programming?
Go over the full study guide for Object-Oriented Programming Foundations.
Read the study guide →Upload your class notes and Revizly writes your flashcards in about a minute.
Flashcard maker