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);
- }

Puneet KankarRank #446 · 5.6K reputationPosted Jan 3, 2020, 5:39 PM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 3, 2020, 9:47 PM EST
Ashutosh GuptaRank #805 · 2.9K reputationPosted Jan 3, 2020, 11:07 PM EST