00:01
Okay, so here we have a problem from barron's apcs book, seventh edition.
00:07
This is from chapter two, problem 19.
00:09
We have a class implementation here for public class temperature with a scale and whether it be f or c for fahrenheit or celsius, and then a double for degrees.
00:21
We have a couple methods that are to be implemented throughout the other problems.
00:28
We're gonna be focusing on the is valid temp method that's declared here towards the bottom, not actually implemented until we get to number 19 here.
00:41
For number 19, it has a bain method declaration right out here, and it's going to ask us the code to be constructed after taking the user input for the scale and the user input for the number of degrees.
00:54
It's asking for the rest.
00:55
And here we have a couple implementations here.
01:00
I'm gonna go over why c is the correct answer here, and it's only number three that is correct overall.
01:07
For number one, the is valid temp is a static method, meaning it can't be invoked by an instance object...