ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
AP Computer Science A Videos 108 videos
AP Computer Science: Classes and Objects Drill 3, Problem 5. Which of the following is not an object?
AP Computer Science: Classes and Objects Drill 3, Problem 4. Which of the following are objects?
AP Computer Science 4.1 Classes and Objects. Which of the answers is the best definition of a postcondition?
AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism 204 Views
Share It!
Description:
AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str, and I, respectively?
AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str, and I, respectively?
Transcript
- 00:00
Hurry And here's your shmoop du jour brought to you
- 00:05
by the boolean doctor When the mother asked if it
- 00:08
was a boy or a girl he just said yes
- 00:10
Open which of the following options will satisfy the conditional
- 00:14
if statements for booster and i respectively and area potential
Full Transcript
- 00:18
answers All right we could eliminate a because incorrectly compares
- 00:26
strings You can only double equals operator on primitive types
- 00:30
with strings you must use that compare to method So
- 00:33
there's also eliminates the e He seems correct using the
- 00:37
compared to method and then comparing those values Zero Well
- 00:41
this is the correct way to use the compared to
- 00:43
method c is correct because it doesn't compare the value
- 00:47
returned by the compared to method to anything Remember that
- 00:50
compared to method returns and manager not a boolean It
- 00:55
looks like he's our answer Next time we're looking at
- 00:57
ten kinds of people in the world those who understand 00:01:00.31 --> [endTime] binary and those who don't
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 4.2 Standard Algorithms. What kind of algorithm is the following?
AP Computer Science 4.4 Classes and Objects. What is the return type of a mutator method?