languages

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

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:21 AM on 6/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

types of patterns

creational, structural, behavioral

2
New cards

examples of creational patterns

factory function, builder, singleton

3
New cards

examples of structural patterns

adapter

4
New cards

examples of behavioral patterns

iterator

5
New cards

singleton (“factory function”

can return instances of different classes in different cases. EX: return new PolarPoint (x,y) instead of having to create a new object

6
New cards

cons of constructors

they have no name, multiple methods with the same name

7
New cards

overloading

multiple methods with the same name. distinguished by parameters

8
New cards

builder creational pattern

helps us create other objects, like a string builder bit by bit. good pairing: mutable Builder for an immutable type

9
New cards

adapter structural pattern

allows you to use instances from other classes to make 2 interfaces compatible

10
New cards

iterator design pattern

enumerate a collection while hiding data structure details