Eboard 21: Anonymous classes (functions?)

You are being recorded and transcribed.

Approximate overview

  • Pop Quiz [20 min]
  • Administrivia [??]
  • Questions [??]
  • Lab [Whatever’s left]

Preliminaries

  • Happy International Women’s Day!
  • Looking ahead: You will be getting your sleep disrupted this weekend.
  • The next set of LAs will be due next Friday. Sorry about the confusion.
  • If you have questions for me on a homework assignment, the best thing to do is to give me a link to your GitHub repo along with your question.
  • Your pop quiz is intended to serve as your “analyze recursive functions LA”. If you didn’t get it today, you’ll have another chance.
  • I tried to print today’s quiz. Unfortunately, I’d given my keys to someone else and couldn’t get to the printer. Sorry.

Upcoming work

Tokens

Academic/Scholarly

  • Tuesday, 2024-03-12, noon, Some PDR. CS Table.
  • Tuesday, 2024-02-12, 8:00–9:00pm, Science 3821. CSC-207 Mentor Session.

Cultural

  • Friday at 4pm in the Global Living Room. Middle of Everywhere.
  • Saturday, 2024-03-09, Harris Cinema, ??:?? Met Opera: Verdi’s La Forza del Destino.
  • Saturday, 2024-03-09, 2:00 pm, Sebring-Lewis. ZAWA! (Flute concert).

Peer

  • Friday–Saturday, 2024-03-08 to 2024-03-09, 7:30 p.m. Songs of the Scarlet and Wayback (play).
  • Friday, 2024-03-08, 4:00–6:00 p.m. Art Museum International Women’s Day Presentations.
  • Saturday, 2024-03-09, Field House. Men’s and Women’s Tennis vs. Central.

Wellness

  • Tuesday, 2024-03-12, noon-1pm, BRAC P103. HIIT and Strength Fitness Class.
  • Tuesday, 2024-03-12, 12:15–12:50, Bucksbaum 131. Yoga in the Museum.
  • Tuesday, 2024-03-12, 4pm, BRAC P103 (Multipurpose Dance Studio): Yoga.

Misc

Other good things to do (no tokens)

Friday PSA

  • Please take of yourselves; others care about you.
  • Please be moderate in all that you do.
  • Obtain consent. Go beyond consent.

Questions

Administrative

MP5

Lambdas

What’s an abstract method?

An abstract method is one that is not implemented; it’s provided as a signature only.

Like what we’ve seen in what I’ve told you about interfaces.

Java also permits you to put methods with code in interfaces and allows you to skip implementations in clsases, so there’s a distinction between methods with code and methods without code. The latter are abstract.

Other topics

Lab

To create the list of Person objects, can I just write List<Person> people = Person.createRoster()?

Sure. However, you get a relatively boring set of people.

Be careful not to use Person.createRooster(). The last time I checked, roosters weren’t people.