Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: C#
Posted by: Minhazul Islam
Added: Jun 10, 2018 7:19 AM
Views: 11
Tags: no tags
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication3
  8. {
  9.     //struct Book { }
  10.     class Student
  11.     {
  12.         private String id;
  13.    
  14.         static void Main(string[] args)
  15.         {
  16.             int[] a = new int[3];
  17.             Student[] std = new Student[2];
  18.             //std[0] = new Student();
  19.             //std[1] = new Student(200, "clerk");
  20.             for (int y = 0; y < 2; y++)  
  21.             {
  22.                 std[y] = new Student();
  23.            
  24.             }
  25.         }
  26.     }
  27. }
  28.