Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class StrategyDemo {
- public static void main(String[] args) {
- Phone ipPhone = new IPPhone("1234", "ProviderA");
- Phone tdmPhone = new TDMPhone("4567", "ProviderB");
- ipPhone.getRecordingResource();
- tdmPhone.getRecordingResource();
- ipPhone.setRecordingResource(Resource.IPRecorderIP2);
- ipPhone.getRecordingResource();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement