Apps_Class

  1| using System;
  2| using System.Collections.Generic;
  3| using System.Linq;
  4| using System.Text;
  5| 
  6| namespace MyDesktop
  7| {
  8|     class Apps_Class
  9|     {
10|         public static int iNextAppObj = 0;
11|         public static int iMaxAppObjects = 26;
12| 
13|         //objects private attribute/definition
14|         private string sPath;
15|         private string sDescription;
16|         private string sStart_in;
17|         private string sParameter;
18| 
19|         //Constructor Method
20|         public Apps_Class(string sPath_Value, string sDescription_Value,
21|           string sStart_in_Value, string sParameter_Value)
22|         {
23|             sPath = sPath_Value;
24|             sDescription = sDescription_Value;
25|             sStart_in = sStart_in_Value;
26|             sParameter = sParameter_Value;
27|             iNextAppObj++;
28|         }
29| 
30|         //Destructor Method
31|         ~Apps_Class()
32|         {
33|             //Leave empty - no code.
34|         }
35| 
36|         //CANNOT ACCESS PRIVATE METHODS EXCEPT THROUGH AN OBJECT OF ITS CLASS!!!
37| 
38|         public string Get_Path()
39|         {
40|             return sPath;
41|         }
42| 
43|         public string Get_Description()
44|         {
45|             return sDescription;
46|         }
47| 
48|         public string Get_Start_in()
49|         {
50|             return sStart_in;
51|         }
52| 
53|         public string Get_Parameter()
54|         {
55|             return sParameter;
56|         }
57|     }//end of class
58| }