Programming week 6

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

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

12 Terms

1
New cards

All classes inherit directly/indirectly from?

Object

2
New cards

What methods are defined in object?

toString() and equals()

3
New cards

Whats the use case of toString()

use it to produce a printable presentation of an object

4
New cards

Subclass Types

A subclass has its own type and is also of the type(s) of its superclass(es).

5
New cards

Liskow Sub Principle

knowt flashcard image
6
New cards
term image

Interface, if you need objects form this interface you need to override all abstract methods

7
New cards

What is a package?

Collection of classes

8
New cards

What does public mean?

Its visible in all classes

9
New cards

What does protected mean?

Visible in subclasses and classes of the same package ( same folder )

10
New cards

What does <none> mean?

Visible in classes of the same package

11
New cards

What does private mean?

Visible only in that class

12
New cards

What does static mean?

That thing* belongs not to an object but to the class