Object Oriented Programming

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

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

Procedural Programming

Programs that perform their behavior as a series of steps to be carried out. Procedural programming structures a program like a recipe in that it provides a set of steps, in the form of functions and code blocks, that flow sequentially in order to complete a task.

2
New cards

Object-oriented programming

Programs that perform their behavior as interactions among objects. Put another way, object-oriented programming is an approach for modeling concrete, real-world things, like cars, as well as relations between things, like companies and employees, students and teachers, and so on.

3
New cards

Primitive data structures

designed to represent simple pieces of information, such as the cost of an item or the title of a book. (e.g., numbers, strings)

4
New cards

Benefits of OOP

  1. Reproducible

  2. Reusable

  3. Abstraction

  4. Encapsulation

  5. Inheritance

  6. Polymorphism

5
New cards

Class

used to create a user-defined data structure and is a template or blueprint for a new type of object that share properties called attributes.

6
New cards

Methods

identify the behaviors and actions that an object created from the class can perform with its data. Defined by classes

7
New cards

Object

an ___ built from the class contains specific information about that particular object.

8
New cards

Attributes

properties of the object that define its characteristics

9
New cards

Operations

the functions that an object can perform that, among other things, allow the object to change its attributes

10
New cards

Constructors

code that initializes an object as it is being created

11
New cards

Methods

the behavior each object can execute

12
New cards

Encapsulation

protects an object’s data from outside access

13
New cards

Abstraction

a distancing between ideas and details

14
New cards

Inheritance

allows classes to inherit features of other classes. supports reusability

15
New cards

Parent classes

extend attributes and behaviors to child classes

16
New cards

Benefits of Inheritance

can create a generic parent class, and then create more specific child classes as needed.

17
New cards

Superclass/Baseclass

parent class

18
New cards

Derived class/Extended class

child class

19
New cards

Client program

a program that uses objects (the main function)