Additional Prelim CP2 Flashcards
What is Object-Oriented Programming?
A programming methodology that defines objects whose behaviors and interactions accomplish a given task
Object-Oriented Programming emphasizes encapsulation, inheritance, and polymorphism.
What does an object represent?
Either a real-world object or an abstraction
Objects can be tangible items or conceptual ideas.
What term describes the actions or functionalities of an object?
Behavior (methods)
Methods define how objects interact or perform operations.
What is an example of an object?
Car
A car can represent a specific type of object in programming.
What is a class in object-oriented programming?
A blueprint for defining the objects
Classes outline the structure and behavior of objects.