ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
Playlist AP® Computer Science: Inheritance, Abstraction, and Polymorphism 15 videos
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 1.1 Inheritance, Abstraction, and Polymorphism. Which of the following are correct?
APCS: Inheritance, Abstraction, and Polymorphism Drill 1, Problem 2. Which of the following is the correct way to begin writing your class?
AP Computer Science 4.4 Inheritance, Abstraction, and Polymorphism 174 Views
Share It!
Description:
AP Computer Science 4.4 Inheritance, Abstraction, and Polymorphism. Which of the following code segments will not cause an error?
Transcript
- 00:00
Thank you We sneak And here's your shmoop du jour
- 00:05
brought to you by snails that fly pretty soon it'll
- 00:08
be pigs and then everyone will be in trouble Fuck
- 00:14
all right Which of the following code segments will not
- 00:16
cause an error And i think it's going All right
Full Transcript
- 00:22
let's go through Each of our choice is to try
- 00:24
to eliminate some choice is wrong because a no pointer
- 00:28
exception will be thrown Rockets nail hasn't been initialized when
- 00:32
they called my height is made Remember any time in
- 00:34
job that there is a dot after no object in
- 00:37
error will occur Choice b runs into the same air
- 00:40
it hasn't been initialized when i called to the constructor
- 00:42
occurs and choice see is incorrect because we haven't defined
- 00:46
a class called rockets nail It doesn't exist well he
- 00:50
looks like it could work no no pointer exception and
- 00:53
all the glasses air really so let's come back to
- 00:56
this one Our last choices in correcting his forced of
- 00:58
lives and interface not a class you can't in stan
- 01:01
she ate new interface so that leaves are correct answer
- 01:04
as d Next time we'll look at the snail who
- 01:07
joined the mlb he had to remove his shell so 00:01:10.388 --> [endTime] he could be a slugger
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?