I am working on some code that was previously written by another developer, and I came across the block of code below:
/// <summary>
/// Default Constructor.
/// </summary>
public Body(Revision parent)
{
mContainer = parent;
mSections = new ArrayList();
mSummary = new ArrayList();
}
/// <summary>
/// Constructs a Body from specified ParseElement.
/// </summary>
/// <param name="parent">Revision container.</param>
/// <param name="elem">Source ParseElement.</param>
public Body(Revision parent, ParseElement elem) : this(parent)
{more constructing stuff}
From what I understand, is that the overloaded constructor would also call the default constructor with the Revision that I send in, causing the initialized ArrayLists to be accessible from the overloaded constructor. Is this correct, or am I totally confused?