✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Considere:class ProdutoA { public string nome; public double preco; } class ProdutoB { private string nome; private double preco; public string Nome { get { return nome; } set { this.nome = value; } } public double Preco { get { return preco; } set { if (value >= 0) this.preco = value; else this.preco = 0; } } }