+ 1
classes
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { class Dog { public string name; public int age; } static void Main(string[] args) { Dog bob = new Dog(); bob.name = "Bobby"; bob.age = 3; Console.WriteLine(bob.age); Console.WriteLine(bob.name ); } } }
7 Respuestas
+ 2
3 body
+ 1
3
Bobby
+ 1
3
Bobby
+ 1
3
Bobby
+ 1
3
Bobby
0
3
Bobby
0
3
Bobby