logo

Crowdly

Browser

Add to Chrome

Considere: using System; class Veiculo {     private string modelo;     ...

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

Considere:

using System;

class Veiculo

{

    private string modelo;

    public void SetModelo(string modelo)

    {

        this.modelo = modelo;

    }

    public string GetModelo()

    {

        return modelo;

    }

    static void Main(string[] args)

    {

        Veiculo v = new Veiculo();

        v.SetModelo("Fiat Punto");

        Console.WriteLine(v.GetModelo());

    }

}

O uso dos métodos GetModelo e SetModelo representa:

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