| jeffhao | 5d1ac92 | 2011-09-29 17:41:15 -0700 | [diff] [blame^] | 1 | // Copyright 2008 The Android Open Source Project |
| 2 | |||||
| 3 | /** | ||||
| 4 | * Doubled sub-class, form #2. | ||||
| 5 | */ | ||||
| 6 | public class DoubledImplement implements ICommon { | ||||
| 7 | public DoubledImplement() { | ||||
| 8 | System.out.println("Ctor: doubled implement, type 2"); | ||||
| 9 | } | ||||
| 10 | |||||
| 11 | public DoubledImplement getDoubledInstance() { | ||||
| 12 | return new DoubledImplement(); | ||||
| 13 | } | ||||
| 14 | |||||
| 15 | public void two() { | ||||
| 16 | System.out.println("DoubledImplement two"); | ||||
| 17 | } | ||||
| 18 | } | ||||