Hi,
I have a hypothetical class called MyFiles which stores an array of
objects of type MyFile. MyFiles contains functions like
GetOldestFile(), GetLargestFile(), etc.
class MyFiles
{
MyFile[] myFiles;
public MyFiles(MyPath path)
{
myFiles = ...
}
}
When implementing the MyFiles class, is there any way to expose the
private members of MyFile for MyFiles? Or must I create accessors? For
me, it feels like MyFiles is inheriting from MyFile even though this
inheritance is not specified in code. Does this make sense?
Thanks for your help,
Barry