Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Vídeo01 - Classe e Método
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using Video01; namespace Semana3 { class Progrm { static void Main(string[] args) { Pessoa pessoa1 = new Pessoa(); Pessoa pessoa2 = new Pessoa(); Pessoa pessoa3 = new Pessoa(); //3 instancias da classe pessoa1.Nome = "Mila"; pessoa1.Sobrenome = "Esteves"; var IdadePessoa1 = Convert.ToInt32("20"); pessoa2.Nome = "Lucas"; pessoa2.Sobrenome = "Hecth"; var IdadePessoa2 = Convert.ToInt32("18"); pessoa3.Nome = "Biel"; pessoa3.Sobrenome = "Mol"; var IdadePessoa3 = Convert.ToInt32("18"); Console.WriteLine(pessoa1.ValidaIdade(IdadePessoa2)); Console.ReadLine(); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
LeftAndRightShiftStrings
triangular matrix
Plt-D v.0.9 WOA
from Base or Derived
Project Euler Problem 4
Creating arrays
AdventCode
Hzzz
Implementing two interfaces with the same method signature
Command design pattern
Please log in to post a comment.