Unit 1. Object-Oriented Design: an Overview

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

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

32 Terms

1
New cards

UML class diagram

describes the relationships between the classes in a software system, also describes the overall design of a software system

2
New cards

what do UML class diagrams include

3
New cards

what 4 kinds of visbailitys are there

public + ,

# protected,
- private
˜ package

4
New cards

generalisation

the relationship between a sub class (parent) and its sub class (child)

also known as an ‘ is an ‘

eg a car is a vehicle

5
New cards

association

description of a relationship between two or more classes

6
New cards

aggregation

is a kind of association known as a ‘has a ‘ relation

eg a book has a chapter

7
New cards

composition

considered a more specific kind of aggregation known as a ‘ owns a ‘

8
New cards

encapsulation meaning

the ability to protect and manage its own information

basically make it difficult for any other objects to chnage or modify the value of the variable inside the class

9
New cards


Inheritance

classes can be created from other classes using inheritance

its used becuase we can reuse code

a class that inherits attributes is called a sub class

10
New cards

abstraction

the process of confining/ removing unnecessary details and only keeping the most important information

what is relevant to that person is kept

11
New cards

how to create objects

int x; * creates a variable called x to hold a primitive integer

integer y ; * creates a variable y to hold a referenct to an object of the integer class

y = new integer (74) * creates a new integer object with a value of 74 and sets the object reference variable y to point at new object

12
New cards

how to import

java.until. (whatever yur importing)

13
New cards

instance data

the location at which a variable is declared defines its scope

can be refrenced in any method of the class

14
New cards

Class library

A set of classes that supports the development of programs, often supplied as part of a language or by third-party vendors.

15
New cards

Java standard class library

A collection of classes, such as String, that is part of every Java environment but is not an inherent part of the Java language itself.

16
New cards

Package

A grouping of related classes in the standard class library that is given one package name.

17
New cards

how to write a package

package dsaj;

import java.until.stack

public class pure stack

18
New cards

constructor

ts job is to give the object its starting values.

19
New cards
20
New cards
21
New cards
22
New cards
23
New cards
24
New cards
25
New cards
26
New cards
27
New cards
28
New cards
29
New cards
30
New cards
31
New cards
32
New cards