ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
Computer Science Videos 112 videos
Just as you move your furniture into a new house before spending the night, you’ve got to spend a little time setting up your environment when yo...
Doubles and ints. At first glance, it may look like this video will be about baseball and football statistics. But they're actually computer scienc...
AP Computer Science: Classes and Objects Drill 1, Problem 1. Which of the following is a correct {/* Implementation */} for the isInsect method?
AP Computer Science 1.4 Classes and Objects 213 Views
Share It!
Description:
In this question, which of the choices correctly constructs a Time(int hours, int minutes, int seconds) object?
Transcript
- 00:00
Sorry And here's your shmoop too sure brought to you
- 00:05
by time Speaking of time what do your grandpa and
- 00:08
your grandpas wristwatch have in common Well they both should
- 00:12
be checked for ticks right Which of the following correctly
- 00:16
constructs a time object and hear the potential answers this's
Full Transcript
- 00:24
a question of java syntax and it looks like all
- 00:27
of the potential answers were trying to make a time
- 00:30
object and the variable tea with varying success So let's
- 00:34
bring him down Shmoop we know that creating a new
- 00:38
object requires the word new So let's get rid of
- 00:41
cnd right off the bat No sign of new anywhere
- 00:44
in either option a is also incorrect It just says
- 00:47
that time t equals knew of this array Anu what
- 00:52
a new heart A new boat house and no thanks
- 00:55
option a he is also incorrect The variable tea on
- 00:58
the left isn't being declared as a time object So
- 01:04
that leaves us with me which is right on the
- 01:06
money variability is properly to find us in time Object
- 01:10
new is in place and properly states the name of
- 01:14
the class were creating the object from time Hey you
- 01:17
know the main problem and arguing with a grandfather clock
- 01:20
It keeps shining in and talking over you So money 00:01:24.631 --> [endTime] funds
Related Videos
AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?
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 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?