79416476

Date: 2025-02-05 23:54:34
Score: 0.5
Natty:
Report link

Yes, you can add it in the following way:

interface IExample {
    get name(): string;
}

class Example implements IExample {
    private _name: string = "Bob";

    public get name() {
        return this._name;
    }

    public set name(value) {
        this._name = value;
    }
}

Greetings.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: alejandrola291