Skip to content

Instantly share code, notes, and snippets.

@Prajwalprakash3722
Created September 14, 2022 18:10
Show Gist options
  • Save Prajwalprakash3722/9a211072354cf6548776e54be38bc233 to your computer and use it in GitHub Desktop.
Save Prajwalprakash3722/9a211072354cf6548776e54be38bc233 to your computer and use it in GitHub Desktop.
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