1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import { DependencyClass } from './depency-file1';
17class Animal {
18    constructor(public name: string) { }
19
20    makeSound(): void {
21        console.log(`${this.name} is making a sound.`);
22    }
23}
24
25class Cat extends Animal {
26    makeSound(): void {
27        console.log(`${this.name} says: Meow!`);
28    }
29}
30
31class Dog extends Animal {
32    makeSound(): void {
33        console.log(`${this.name} says: Woof!`);
34    }
35}
36
37const cat = new Cat('Kitty');
38const dog = new Dog('Buddy');
39
40cat.makeSound();
41dog.makeSound();
42let depenIns = new DependencyClass();
43depenIns.depencyMethod1();
44depenIns.depencyProp1;
45depenIns.depencyProp2;
46