logo

Crowdly

Browser

Add to Chrome

Considere: class ProdutoA {       public string nome;       public ...

✅ 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;

                  }

      }

 }

0%
0%
0%
0%
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!

Browser

Add to Chrome