Hi
i m learning classes
and every tuturial i read the code is like this
class:
- namespace WindowsFormsApp8
- {
- class Triangulo
- {
- public int A;
- public int C;
- public int D;
- }
- }
program:
- static void Main()
- {
- Triangulo X, Y;
- X = new Triangulo();
- Y = new Triangulo();
-
- Y.A = 5;
-
- Console.Write( Y.A);
- }
how can i put this in text fields or labels? thanks