I'm currently having problem with creating an abstract class, implementing it, and making a new instance.
Even though I've instantiated it, and set values, its properties still return to null.

This is my abstract class Code:
  1. public abstract class AuthData
  2.     {
  3.         private string _VoidCode;
  4.         private string _SessionID;
  5.         private DateTime _SessionExp;
  6.         private int _SessionHours;
  7.                
  8.         public abstract string VoidCode
  9.         {
  10.             get;
  11.             set;
  12.         }
  13.  
  14.         public abstract string SessionID
  15.         {
  16.             get;
  17.             set;
  18.         }
  19.  
  20.         public abstract DateTime SessionExp
  21.         {
  22.             get;
  23.             set;
  24.         }
  25.  
  26.         public abstract Int32 SessionHours
  27.         {
  28.             get;
  29.             set;
  30.         }
  31.     }

And this is my implementation with Constructor Code:
  1. public class AuthDataConst : AuthData
  2.     {
  3.         private string _VoidCode;
  4.         private string _SessionID;
  5.         private DateTime _SessionExp;
  6.         private int _SessionHours;
  7.  
  8.        
  9.         public AuthDataConst(string voidcode, string sessionid, DateTime sessionexp, int sessionhrs)
  10.         {            
  11.             string _VoidCode = voidcode;
  12.             string _SessionID = sessionid;
  13.             DateTime _SessionExp = sessionexp;
  14.             int _SessionHours = sessionhrs;            
  15.         }
  16.        
  17.         public override string VoidCode
  18.         {
  19.             get
  20.             {
  21.                 return this._VoidCode;
  22.             }
  23.             set
  24.             {
  25.                 this._VoidCode = this.VoidCode;
  26.             }
  27.         }
  28.  
  29.         public override string SessionID
  30.         {
  31.             get
  32.             {
  33.                 return this._SessionID;
  34.             }
  35.             set
  36.             {
  37.                 this._SessionID = this.SessionID;
  38.             }
  39.         }
  40.  
  41.         public override DateTime SessionExp
  42.         {
  43.             get
  44.             {
  45.                 return this._SessionExp;
  46.             }
  47.             set
  48.             {
  49.                 this._SessionExp = this.SessionExp;
  50.             }
  51.         }
  52.  
  53.         public override int SessionHours
  54.         {
  55.             get
  56.             {
  57.                 return this._SessionHours;
  58.             }
  59.             set
  60.             {
  61.                 this._SessionHours = this.SessionHours;
  62.             }
  63.         }
  64.     }

Then I tried to make a new instance but its properties still returns null values. Code:
  1. AuthDataConst result = new AuthDataConst("0000", "1234567890", DateTime.Now.AddHours(5), 5);

Even manually setting their values returns same result; all properties are still null. Code:
  1. result.VoidCode = "0000";
  2.             result.SessionID = "1234567890";
  3.             result.SessionExp = DateTime.Now.AddHours(5);
  4.             result.SessionHours = 5;