Bem vindo(a) ao meu perfil.
class Developer {
private props = {
name: "",
acknowledgements: "",
skills: {
languages: [] as string[],
frameworks: [] as string[],
primarySkillset: [] as string[],
},
};
constructor() {
this.set();
}
getProps() {
return { ...this.props };
}
private set() {
this.props.name = "Marco Damasceno";
this.props.acknowledgements = "Developer Web";
this.props.skills.languages = ["C#", "Javascript","Typescript];
this.props.skills.frameworks = [".NET", "Nest"];
this.props.skills.primarySkillset = [
"Comunicação",
"Resolução de problemas",
"Adaptabilidade",
"Proatividade",
"Foco",
"Empatia",
"Criatividade",
];
}
}
class Person extends Developer {
constructor() {
super();
}
}
const marco = new Person();
const marcoAttributes = marco.getProps();
console.log(marcoAttributes);