INTRO TO OBJECT-ORIENTED PROGRAMMING (OOP)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/40

encourage image

There are no tags or description

Looks like no tags are added yet.

41 Terms

1
New cards

Programming Paradigm

A style or pattern of programming that defines how code is structured and organized.

2
New cards

Procedural Programming

A programming paradigm where instructions are executed step by step using procedures or functions.

3
New cards

Procedure

A block of code that performs a specific task; also called a function, subroutine, or method.

4
New cards

Functional Programming

A programming paradigm that focuses on functions and expressions rather than step-by-step instructions.

5
New cards

First-Class Functions

Functions that can be assigned to variables, passed as arguments, or returned from other functions.

6
New cards

Object-Oriented Programming (OOP)

A programming paradigm that uses objects representing real-world entities as the main building blocks.

7
New cards

Object

A specific instance of a class that has data (attributes) and behavior (methods).

8
New cards

Class

A blueprint or template used to create objects with common properties and behaviors.

9
New cards

Attribute

A characteristic or property that defines an object.

10
New cards

Method

A block of code inside a class that defines an action an object can perform.

11
New cards

Procedural vs OOP

Procedural programming focuses on procedures, while OOP focuses on data and objects.

12
New cards

Top-Down Approach

A programming approach where a problem is broken down into smaller procedures.

13
New cards

Bottom-Up Approach

A programming approach where programs are built by combining objects.

14
New cards

Encapsulation

The process of wrapping data and methods into a single class while hiding data from outside access.

15
New cards

Data Hiding

Restricting access to data so it can only be modified through defined methods.

16
New cards

Abstraction

The process of showing only essential features while hiding implementation details.

17
New cards

Inheritance

The ability of a class to acquire properties and methods from another class.

18
New cards

Parent Class

A class whose properties and methods are inherited by another class.

19
New cards

Child Class

A class that inherits properties and methods from a parent class.

20
New cards

Polymorphism

The ability of the same method or operator to behave differently depending on context.

21
New cards

Operator Overloading

Using the same operator to perform different operations depending on the data type.

22
New cards

Function Overloading

Having multiple methods with the same name but different parameters.

23
New cards

Method Invocation

24
New cards

main() Method

The starting point of a Java program that runs automatically when the program starts.

25
New cards

Method Header

The part of a method that defines its access level, return type, name, and parameters.

26
New cards

Access Modifier

A keyword that controls the visibility of classes, methods, or variables.

27
New cards

public

An access modifier that allows a class or method to be accessed from anywhere.

28
New cards

private

An access modifier that restricts access to within the same class only.

29
New cards

static

A keyword used for methods or variables that belong to the class rather than an object.

30
New cards

Return Type

The data type that specifies what value a method sends back after execution.

31
New cards

Method Body

The section of a method that contains the executable statements.

32
New cards

Fully Qualified Identifier

A complete name that includes the class name and method name separated by a dot.

33
New cards

Data Field

A variable declared inside a class but outside any method.

34
New cards

Static Data Field

A data field shared by all objects of a class.

35
New cards

Non-Static Data Field

A data field that has a unique value for each object.

36
New cards

Getter Method

A method used to retrieve the value of a data field.

37
New cards

Setter Method

A method used to modify or assign a value to a data field.

38
New cards

Object Instantiation

The process of creating an object from a class using the new keyword.

39
New cards

Reference Type

A data type that stores the memory address of an object rather than the actual value.

40
New cards

Constructor

A special method that creates and initializes an object and has the same name as the class.

41
New cards

new Operator

A keyword that allocates memory for an object and calls its constructor.