public class StandardQueue
{
private Array _array = new Array(); // This is the encapsulated member
public void WorkWithArray()
{
// Work with the array here
}
}
In this example the member called _array is only accessible from within the class StandardQueue. This means that if you create an instance of StandardQueue you would be able toa ccess function WorkWithArray but not _array. All access to _array must happen from within the class (e.g. inside the functions).