Canadian and US postal code Java

hello, I am currently struggling so bad in understanding Java and how to implement the codes. I have to implement two subclasses for Canadian and US postal code in Java.
For Canadian Postal code, a valid postal postal code has the rule: positions at 0,2,5 are letters. Positions at 1,4,6 are digits. Position at 3 is white space.
(eg: V9A 7N2)
For a valid USA postal code, it starts with two letter, then white space and followed by 5 digits. (eg: WA 98001)
I only need to do implementation on the Canadian and US class.
I have included the parent class and main.java for reference.

Screenshot_(286).png

Screenshot_(285).png

Screenshot_(284).png

These are what was given:

Screenshot_(283).png