Object-Oriented Programming Concepts

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts in object-oriented programming.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

Getter

Allows you to read the value of a private attribute.

2
New cards

Class

A template, prototype, or blueprint for objects, where attributes and functionality/behaviour are defined.

3
New cards

Constant Attribute

A field whose value cannot be changed once it has been assigned.

4
New cards

Constructor

A method that is called when an object of a class is created to add values to the fields of an object.

5
New cards

Encapsulation

The bundling of data with the methods operating on that data.

6
New cards

Information Hiding

The concept of making attributes private, hiding them from other objects or classes.

7
New cards

Inheritance

A method for extending existing classes by adding methods and fields to a child class, facilitating code reuse.

8
New cards

Setter

Allows you to alter a private attribute.

9
New cards

Non Static Method

Belongs to the object, with memory allocated for that object only.

10
New cards

Object

A dynamic instance of a class, instantiated using the constructor.

11
New cards

Overloading

More than one method with the same name and different parameters in the same class.

12
New cards

Overriding

More than one method with the same name and same parameters in different, but related classes.

13
New cards

Polymorphism

A programming language's ability to process objects differently depending on their data type or class.

14
New cards

Protected Attribute

Only the class or any derived classes have direct access to the attribute.

15
New cards

Static Method

Belongs to the class. Memory is shared for all objects of that class. Static methods only have access to static attributes.

16
New cards

toString() Method

Provides a string representation of an object’s fields or attributes.