Advertisement
mmayoub

Ex03P027, Hog.cs

Nov 18th, 2021
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.  
  2. using Ex03P027;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6.  
  7. namespace Ex03P9027
  8. {
  9.     // Ex03 - P027
  10.     class Hog
  11.     {
  12.         private int code;
  13.         private Student[] students;
  14.         private int registerd;
  15.  
  16.         public int getRegistered()
  17.         {
  18.             //return students.Length; // error - always return 20
  19.             return registerd;
  20.         }
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement