00:01
Okay, so here we have, this is from barron's ap science, seventh edition, ap cs science for chapter two, question 16.
00:12
Here we have a class implementation.
00:14
You can read through it yourself, kind of get the readout on what's happening.
00:18
The main focus of this method is going to be the, for this question is going to be the public rational plus method here.
00:27
It's not actually implemented.
00:30
We're to answer how to actually implement it over the problem 16.
00:36
And up here it states, here's the implementation code for the plus method.
00:40
Then it's got here, the public rational plus, rational r, that's going to be the parameter that's going to be passed through as an object, a rational object.
00:51
Here we have the instance itself calling a fixed signs.
00:55
And then we have the parameter calling a fixed sign here.
00:58
So both of those are going to be performing fixed sign methods.
01:02
The denominator is a new instance variable that's declared for denominator times r dot denominator.
01:10
And then numerator is going to be similarly, i'm going to point an arrow here.
01:15
And then numerator is going to be another instance variable created, numerator times r denominator.
01:21
So this is getting called here...