CompSci E214 - Slide 10 - Designing Data types

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

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:30 PM on 5/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

Describe encapsulation

knowt flashcard image
2
New cards

Describe python’s enforcement of encapsulation

knowt flashcard image
3
New cards

Describe Immutability

knowt flashcard image
4
New cards

Describe the advantages and disadvantages of immutability

knowt flashcard image
5
New cards

Describe an issue with immutability regarding addresses and describe a solution

knowt flashcard image
6
New cards

Describe python’s tuple

knowt flashcard image
7
New cards

Describe polymorphism

knowt flashcard image
8
New cards

Describe operator overloading and state the special methods for:

  • sum

  • difference

  • product

  • power

  • quotient

  • div

  • mod

  • positive

  • negative

knowt flashcard image
9
New cards

Describe equality testing

knowt flashcard image
10
New cards

Describe hashing

knowt flashcard image
11
New cards

State the special methods for the following operations:

  • less than

  • less than or equal to

  • greater than

  • greater than or equal to

knowt flashcard image
12
New cards

State the special methods for the following built in functions:

  • len

  • float

  • int

  • str

  • abs

  • hash

  • iter

<p></p>
13
New cards

Describe inheritance

knowt flashcard image