ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
AP Computer Science Videos 112 videos
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?
AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?
AP Computer Science 2.5 Program Development 184 Views
Share It!
Description:
AP Computer Science 2.5 Program Development. Assume that a given penguin's name never changes. Which of the following is true?
Transcript
- 00:00
Thank you We sneak and here's your shmoop too sure
- 00:05
brought to you by flippers They're not just what penguins
- 00:08
used to change Television channels assume that a given penguins
- 00:12
name never changes for which of the following is true
- 00:15
My name shmoop A sad reality for penguins is that
Full Transcript
- 00:23
whatever name their parents give them they're stuck with it
- 00:26
for the rest of their lives even if they were
- 00:29
named something like rope sniffer or killer killer whale Yeah
- 00:33
they'd have to accept the reality and go on with
- 00:35
their lives and painful well because of this in our
- 00:38
penguin class we need to make the name variable unchangeable
- 00:42
Even if a penguin wants to be named taylor swift
- 00:45
fan for life nobody should be able to change the
- 00:48
name variable Well To do this we can use the
- 00:51
groovy job A key word Final fizzle insure that if
- 00:54
anything attempts to change the name variable the compiler will
- 00:58
give him a big no no that well this leaves
- 01:01
as choice B is our answer that my name data
- 01:03
members should be declared as a final such a shame
- 01:07
that penguins with awful names can't go down to their
- 01:09
local federal building to apply for a name change They're 00:01:12.13 --> [endTime] so good at standing in lines
Related Videos
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?
AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?
AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str,...
AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?