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.
These are what was given: