Object-Oriented Programming Concepts

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover the essential concepts and definitions related to Object-Oriented Programming (OOP) from the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

What is a programming paradigm?

A fundamental style or approach to writing and structuring code.

2
New cards

What does Object-Oriented Programming (OOP) focus on?

It focuses on objects and how they interact to solve programming problems.

3
New cards

What are the four key concepts of Object-Oriented Programming?

Objects and Classes, Abstraction, Inheritance, and Polymorphism.

4
New cards

Define encapsulation.

The hiding of an object's data and methods to protect it from unintended use and corruption.

5
New cards

What is inheritance in OOP?

A mechanism where a class can acquire the properties and functionalities of another class.

6
New cards

What is polymorphism?

The ability to process objects differently based on their data type or class.

7
New cards

What is the difference between static and dynamic polymorphism?

Static polymorphism is resolved at compile time (method overloading), while dynamic polymorphism is resolved at runtime (method overriding).

8
New cards

What does abstraction allow a programmer to do?

It lets a programmer hide all but the relevant information about an object to reduce complexity.

9
New cards

What is the purpose of the 'super' keyword in Java?

It is used to refer to the parent class (superclass) and can call its methods or constructor.

10
New cards

What are the types of inheritance in Java?

Single inheritance, Multilevel inheritance, Hierarchical inheritance, Multiple inheritance (via interfaces), Hybrid inheritance.