Created
September 14, 2022 18:10
-
-
Save Prajwalprakash3722/9a211072354cf6548776e54be38bc233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Vehicle { | |
class Bike { | |
user: User; | |
constructor(public inputUser: User) { | |
this.user = inputUser; | |
} | |
getName() { | |
return this.user.name; | |
} | |
} | |
} | |
namespace Animal { | |
class Lion { | |
name: String; | |
constructor(name: String) { | |
this.name = name; | |
} | |
getName() { | |
return this.name; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment