logo

Crowdly

Num código como o seguinte em C#: class Pessoa {     public int Idade { get...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Num código como o seguinte em C#:

class Pessoa

{

    public int Idade { get; set; }

}

A declaração acima viola o princípio do encapsulamento, porque o atributo Idade é público e não existe nenhum campo privado.

60%
40%
More questions like this

Want instant access to all verified answers on moodle.escolatic.com.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!