Created
March 22, 2025 11:17
-
-
Save trikitrok/09f2b61d5c75929679d5536cd5dc055e to your computer and use it in GitHub Desktop.
Used to illustrate finding test points
This file contains hidden or 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
export class Element { | |
private readonly name: string; | |
private text: string; | |
constructor(name: string) { | |
this.name = name; | |
this.text = ""; | |
} | |
addText(newText: string): void { | |
this.text += newText; | |
} | |
getName(): string { | |
return this.name; | |
} | |
getText(): string { | |
return this.text; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment