Anonymouspilot - that's not quite right.
In controlled airspace you cannot operate either above 400 ft or within 3nm without permission from the airspace arbiter/aerodrome operator and ATC. So you can't be at 7nm and operate above 400ft without permission.
Same in class G. You shall remain below 400ft unless in an area approved by CASA. (CASR 101.030).