Confused with two-way ANOVA hypotheses

#1
Hello all,

I am working on my assignment of two-way ANOVA and feel totally lost.

In my understanding, hypotheses for two-way ANOVA are three.
One refers to Factor A (e.g., conditions of gender), and one for Factor B (e.g., treatment and control groups) and one for the interaction of A and B.

For example, the null hypotheses would be like...
H0A: There is no effect of gender on participants' hours of sleep.
H0B: There is no effect of room color on participants' hours of sleep.
H0AB: There is no interaction effects of gender and room colour concerning amount of hours slept.


HOWEVER...
The guiding hypotheses proveded in our textbook, made by our prof., confuse me:confused:

H0A: for condition A, there will be no difference between the control and treatment group
H0B: for condition B, there will be no difference between the control and treatment group
H0AB: the effect of condition A will not differ depending on the level of condition B.


So, the above hypotheses are not refering to the two factors equally; rather, the hypotheses are made to test the conditions mainly.

Is this just a different approach? Or is it wrong?

Thank you for your help in advance!