Is it necessary to have a constructor in my class if the class already implements an interface? It seems like redundant code to me.
interface PersonInterface {
firstname: string;
lastname: string;
email: string;
}
class Person implements PersonInterface {
firstname = "John";
lastname = "Johnsson";
email = "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2e64414640004441405d41406e43...
PrintPerson() {
console.log(`${this.firstname}, ${this.lastname}, ${this.email}`)
}
}