Chapter 1: Introduction of OOP in Java (copy)

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

1/51

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

52 Terms

1
New cards

Simula programming language

Fundamental object-oriented concepts were first introduced via the class construct in the _____ in the 1960s.

2
New cards

Smalltalk-80

the programming technique was only accepted with the advent of _____ more than a decade later.

3
New cards

procedural

The _____ approach to programming was the de facto approach in the early days of programming.

Here, code is modularized based on a system’s processes.

4
New cards

easy to maintain and modify existing code

One reason to use Object-oriented Programming is because it makes it _____ as new objects are created inheriting characteristics from existing ones (SEH, 2013). This cuts down the development time considerably and makes adjusting the program much simpler.

5
New cards

inline programming

Procedural Programming, which at times has been referred to as ____

6
New cards

Procedural Programming

takes a more top-down approach to programming.

7
New cards

Procedural Programming

takes on applications by solving problems from the top of the code down to the bottom.

8
New cards

Object-oriented Programming

uses classes and objects

9
New cards

Procedural

can be defined as a programming model which is derived from structured programming, based upon the concept of calling procedure.

10
New cards

routines, subroutines, functions

Procedures are also known as _____, _____, or _____

11
New cards

Procedures

simply consist of a series of computational steps to be carried out.

12
New cards

program’s execution

During a _____, any given procedure might be called at any point, including by other procedures or itself.

13
New cards

edit every line

The issue to that is obvious in Procedural Programming is that if an edit is needed to the program, the developer must ____ of code that corresponds to the original change in the code.

14
New cards

procedural prog

code is divided into modules or functions

15
New cards

oop

code is made up of classes and objects

16
New cards

procedural prog

top down approach

17
New cards

oop

bottom up approach

18
New cards

procedural prog

difficult to modify/manage

19
New cards

oop

easy to modify/manage

20
New cards

procedural prog

main function calls other functions

21
New cards

oop

objects communicate by passing messages

22
New cards

procedural prog

data is not secured

23
New cards

oop

data is secure

24
New cards

procedural prog

less reusability of code

25
New cards

oop

more reusability of code

26
New cards

procedural prog

less flexibility and abstraction

27
New cards

oop

more flexibility and abstraction

28
New cards

Encapsulation

The implementation and state of each object are privately held inside a defined boundary, or class.

29
New cards

Encapsulation

Other objects do not have access to this class or the authority to make changes but are only able to call a list of public functions, or methods.

30
New cards

Encapsulation

This characteristic of data hiding provides greater program security and avoids unintended data corruption.

31
New cards

Abstraction

Objects only reveal internal mechanisms that are relevant for the use of other objects, hiding any unnecessary implementation code.

This concept helps developers more easily make changes and additions over time.

32
New cards

Inheritance

Relationships and subclasses between objects can be assigned, allowing developers to reuse a common logic while still maintaining a unique hierarchy.

33
New cards

Inheritance

This property of OOP forces a more thorough data analysis, reduces development time and ensures a higher level of accuracy.

34
New cards

Polymorphism

Objects can take on more than one form depending on the context.

35
New cards

Polymorphism

The program will determine which meaning or usage is necessary for each execution of that object, cutting down the need to duplicate code.

36
New cards

fortran,
algol,
cobol,
c,
basic,
pascal

6 languages used in procedural

37
New cards

java,
c++,
c#,
python,
php,
javascript,
ruby,
perl,
objective-c,
dart,
swift,
scala

12 languages used in oop

38
New cards

Data Modeling

The first step in OOP is to collect all of the objects a programmer wants to manipulate and identify how they relate to each other

39
New cards

Classes

are user-defined data types that act as the blueprint for individual objects, attributes and methods.

40
New cards

class

is a blueprint or prototype that defines the variables and the methods (functions) common to all objects of a certain kind.

41
New cards

Objects

are instances of a class created with specifically defined data.

42
New cards

Objects

can correspond to real-world objects or an abstract entity.

43
New cards

object

is a specimen of a class.

44
New cards

object

Software _____ are often used to model real-world objects you find in everyday life.

45
New cards

description

When class is defined initially, the _____ is the only object that is defined.

46
New cards

Attributes

are defined in the class template and represent the state of an object

47
New cards

attributes field

Objects will have data stored in the _____.

48
New cards

Class attributes

belong to the class itself.

49
New cards

Methods

are functions that are defined inside a class that describe the behaviors of an object.

50
New cards

reference

Each method contained in class definitions starts with a ____ to an instance object.

51
New cards

instance methods

subroutines contained in an object

52
New cards

methods

Programmers use _____ for reusability or keeping functionality encapsulated inside one object at a time.