At the beginning you can switch.
Airlines get annoyed by people moving between classes during the flight. Whoever's in a seat at the beginning of the flight is usually the same person they expect to see there throughout. Otherwise it's like two people are trying to get the benefits of the better service class while only paying for one.