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;
- }
- }
- static void Main()
- {
- Triangulo X, Y;
- X = new Triangulo();
- Y = new Triangulo();
- Y.A = 5;
- Console.Write( Y.A);
- }
Ashutosh GuptaPosted Jan 4, 2020, 4:07 AM
Jignesh KumarPosted Jan 4, 2020, 2:47 AM
Puneet KankarPosted Jan 3, 2020, 10:39 PM