What is a programming language used for?
To write instructions and tell a computer how to perform tasks.
Programming Paradigm
Approach to solving problems with code
What is procedural programming?
An approach writing programs as sequences of steps executing top to bottom.
Procedural Programming Limits
Hard to reuse, error-prone, data insecure
What is object-oriented programming?
A programming approach using classes and objects combining data and functions into one object.
Object-Oriented Programming
Uses classes/objects to combine data and functions
What do attributes and methods represent in an object?
Attributes describe data and methods describe behavior of a real-world entity.
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
Test your knowledge with 11 questions on Object-Oriented Programming Foundations.
1. What is the defining execution pattern of procedural programming?
2. What is procedural programming primarily characterized by?
Review the complete course in the study sheet for Object-Oriented Programming Foundations.
See study sheet →Import your course and AI generates flashcards in 30 seconds.
Flashcard generator