12faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes/*
22faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Copyright (C) 2008 The Android Open Source Project
32faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
42faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Licensed under the Apache License, Version 2.0 (the "License");
52faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * you may not use this file except in compliance with the License.
62faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * You may obtain a copy of the License at
72faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
82faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *      http://www.apache.org/licenses/LICENSE-2.0
92faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes *
102faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * Unless required by applicable law or agreed to in writing, software
112faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * distributed under the License is distributed on an "AS IS" BASIS,
122faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * See the License for the specific language governing permissions and
142faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes * limitations under the License.
152faa5f1271587cda765f26bcf2951065300a01ffElliott Hughes */
165d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
175d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao/**
185d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao * Doubled sub-class, form #2.
195d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao */
205d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhaopublic class DoubledImplement implements ICommon {
215d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao    public DoubledImplement() {
225d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao        System.out.println("Ctor: doubled implement, type 2");
235d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao    }
245d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
255d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao    public DoubledImplement getDoubledInstance() {
265d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao        return new DoubledImplement();
275d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao    }
285d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
295d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao    public void two() {
305d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao        System.out.println("DoubledImplement two");
315d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao    }
325d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao}
33