Drives_Class
1| using System;
2| using System.Collections.Generic;
3| using System.Linq;
4| using System.Text;
5|
6| namespace MyDesktop
7| {
8| class Drives_Class
9| {
10| public static int iNextDriveObj = 0;
11| public static int iMaxDriveObjects = 26;
12|
13| //objects private attribute/definition
14| private string sPath;
15| private string sDescription;
16|
17| //Constructor Method
18| public Drives_Class(string sPath_Value, string sDescription_Value)
19| {
20| sPath = sPath_Value;
21| sDescription = sDescription_Value;
22| iNextDriveObj++;
23| }
24|
25| //Destructor Method
26| ~Drives_Class()
27| {
28| //Leave empty - no code.
29| }
30|
31| //CANNOT ACCESS PRIVATE METHODS EXCEPT THROUGH AN OBJECT OF ITS CLASS!!!
32|
33| public string Get_Path()
34| {
35| return sPath;
36| }
37|
38| public string Get_Description()
39| {
40| return sDescription;
41| }
42| }//end of class
43| }