Option D - Computer Science IB (copy)

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

1/44

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

45 Terms

1
New cards

Object

An abstract entity that is made up of data/attributes and behaviours/methods.

2
New cards

Private

It restricts access to certain class members,

only accessible within the class in which it is defined

3
New cards

Public

The entire class is public and accessable to other classes. This includes methods, variables, etc.

4
New cards

Static

Whatever is defined as static means that it belongs to the class.

5
New cards

Protected

Allows class members within same class and by subclasses even if in different packages

6
New cards

Extends

transfers use of parent class operations and methods to subclass

7
New cards

Class

module consisting methods and/or variables and may define a custom data type

8
New cards

Instantiation

process of creating object from class

9
New cards

UML Diagram

visual representation of the design of a system before coding (relationship between attributes, methods and classes)

10
New cards

Relationships

3 types: is-a: one type is subtype of another, has-a: one type includes instance of another, uses: one portion of the program relies on another;

connections between classes in UML diagram

11
New cards

Dependencies

another term for ‘‘uses’ relationship in UML

12
New cards

Constructing Objects

creating instances of classes, initializing attributes.

13
New cards

Data Types

2 types: Reference (String, Double, Integer, Boolean) and Primitive (int, double, char, boolean);

14
New cards

Parameter

value passed into a constructor

15
New cards

Encapsulation

restricting unauthorized access to object’s data, only allowing controlled access through Accessor and Mutator methods

16
New cards

Inheritance

relationship that allows use of inheriting properties and methods from parent class, to reuse and organize code

17
New cards

Polymorphism

code written without knowledge of which specific data types it will operate on

18
New cards

Advantage of Encapsulation

modify implemented code, without breaking code of others who use our code: maintainability, flexibility, extensibility

19
New cards

Advantage of Inheritance

minimize amount of duplicate code in an application, by reusing code amongst several subclasses

20
New cards

Advantage of Polymorphism

Overriding: allows a class to specify methods that will be common to all of its derivatives, while allowing sub classes to define the specific implementation of some or all of those methods

21
New cards

Advantage of Libraries

22
New cards

Advantage of OOP

23
New cards

Disadvantage of OOP

24
New cards

Programming Teams

25
New cards

Advantage of Modularity

26
New cards

Modularity

27
New cards

Identifier

28
New cards

Primitive

29
New cards

Instance

30
New cards

Variable

31
New cards

Perimeter Variable

32
New cards

Local Variable

33
New cards

Method

34
New cards

Accessor

35
New cards

Mutator

36
New cards

Constructor

37
New cards

Signature

38
New cards

Return Value

39
New cards

Static Array

40
New cards

Potential Ethical Issues

41
New cards

Potential Social Issues

42
New cards

Recursion

43
New cards

Abstract Data Types

44
New cards

Styling Conventions

45
New cards

Methods for Stacks and Queues

Stacks: Pop, Push, isEmpty, hasNext
Queues: Enqueue, Dequeue, isEmpty, hasNext