ShmoopTube

Where Monty Python meets your 10th grade teacher.

Search Thousands of Shmoop Videos


Inheritance, Abstraction, and Polymorphism Videos 17 videos

AP Computer Science 1.2 Inheritance, Abstraction, and Polymorphism
369 Views

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 1.1 Inheritance, Abstraction, and Polymorphism
203 Views

AP Computer Science 1.1 Inheritance, Abstraction, and Polymorphism. Which of the following are correct?

AP Computer Science 1.3 Inheritance, Abstraction, and Polymorphism
177 Views

AP Computer Science 1.3 Inheritance, Abstraction, and Polymorphism. Which of the following is true?

See All

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?

Language:
English Language

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

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 3.4 Inheritance, Abstraction, and Polymorphism
204 Views

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.2 GridWorld Case Study and APIs
493 Views

AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?

AP Computer Science 1.4 Standard Algorithms
200 Views

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
191 Views

AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?

AP Computer Science 4.2 Standard Algorithms
191 Views

AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?