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 3.1 Standard Data Structures 175 Views
Share It!
Description:
AP Computer Science 3.1 Standard Data Structures. Which of the following can be added to a NeatAnimal array without causing an error?
Transcript
- 00:00
Thank you We sneak and here's your smoke du jour
- 00:05
brought to you by polite terran dactyls You can't hear
- 00:09
them go to the bathroom because they're p is silent
- 00:12
Can't we went there A joke Yeah whizzing parad act
- 00:16
als that's How far shmoop will go to get you
Full Transcript
- 00:18
to learn this stuff kid Okay here we go which
- 00:23
of the following congee added to a neat animal array
- 00:25
without causing an error All right look intense herod act
- 00:31
all handsy there with hi aren't you done reading All
- 00:36
right here potential answers And let's just go all right
- 00:41
so let's think about what this questions asking We have
- 00:44
a bunch of slots in an array that only accept
- 00:46
objects that are a type meat animal but let's take
- 00:49
a look at the answer is into a neat animal
- 00:52
No but we can eliminate that one by one Moving
- 00:56
on you were given an object of type pterodactyl well
- 01:00
that's not a neat animal so we can cross it
- 01:03
off the list right Wrong Pterodactyl is a subclass of
- 01:07
meat anil meaning we can store it inside of a
- 01:10
neat animal object Remember we can put sub classes into
- 01:13
super class is not the other way around And finally
- 01:17
let's take a look at our last choice String obviously
- 01:20
is not a neat animal so we can cross that
- 01:24
one off lists or answer must be beat And next
- 01:26
time we'll look it done sort of crashing their cars 00:01:29.51 --> [endTime] That's a tyrannosaurus rex
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?