FlashKeepers

Computer Science · College

Object-Oriented Programming, Unit 1: Classes and Objects

Object-Oriented Programming, unit: Classes and Objects. Core concepts, terminology, and worked-example cues a college student meets for this unit, building on prior units without repeating them. Front: a term, concept, or short problem cue. Back: the definition, explanation, or answer.

18 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone
What is object-oriented programming (OOP)?
A programming paradigm organizing code around objects that combine data and behavior
What is a class?
A blueprint defining the properties and behaviors that its objects will have
What is an object?
An instance of a class, with its own state and behavior
What is instantiation?
The process of creating an object from a class
What is a constructor?
A special method that initializes a new object when it is created
What is an instance variable?
A variable belonging to a specific object, holding that object's unique state
What is a method?
A function defined within a class that operates on its objects
What is 'this' or 'self' typically used for in a method?
Referring to the specific object the method is currently operating on
What is a class variable (static variable)?
A variable shared by all instances of a class, rather than belonging to one object
What is the difference between a class and an object?
A class is a blueprint; an object is a concrete instance created from that blueprint
What is a getter method?
A method that returns the value of a private instance variable
What is a setter method?
A method that modifies the value of a private instance variable
What is method overloading?
Defining multiple methods with the same name but different parameter lists
What is a default constructor?
A constructor with no parameters, often automatically provided if none is defined
What is object state?
The current values of an object's instance variables at a given moment

3 more cards in the app