This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Globalization; | |
namespace Course | |
{ | |
class ContaBancaria | |
{ | |
public int Numero { get; private set; } | |
public string Titular { get; set; } | |
public double Saldo { get; private set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Ordem para implementação: | |
//Atributos privados | |
//Propriedades autoimplementadas | |
//Construtores | |
//Propriedades customizadas | |
//Outros métodos da classe | |
using System.Globalization; | |
namespace Course | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Globalization; | |
namespace Course | |
{ | |
class Produto | |
{ | |
private string _nome; | |
private double _preco; | |
private int _quantidade; | |
public Produto() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Globalization; | |
namespace Course | |
{ | |
class Produto | |
{ | |
public string Nome; | |
public double Preco; | |
public int Quantidade; | |
public Produto(string nome, double preco, int quantidade) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Classe | |
using System; | |
namespace Course | |
{ | |
class Retangulo | |
{ | |
public double Altura; | |
public double Largura; | |
public double Area() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Criando Classe | |
using System; | |
namespace Course | |
{ | |
class Triangulo | |
{ | |
private double A { get; set; } | |
private double B { get; set; } | |
private double C { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Criando Classe | |
using System.Globalization; | |
namespace Course | |
{ | |
class Produto | |
{ | |
public string Nome; | |
public double Preco; | |
public int Quantidade; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Criando Classe | |
using System; | |
namespace Course | |
{ | |
class Triangulo | |
{ | |
public double A; | |
public double B; | |
public double C; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
namespace Course | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
double xA, xB, xC, yA, yB, yC; |