I am working on some code that was previously written by another developer, and I came across a block of code below:
public Body(Revision parent)
{
mContainer = parent;
mSections = new ArrayList();
mSummary = new ArrayList();
}
public Body(Revision parent, ParseElement elem) : this(parent)
{more constructing stuff}
From what I understand, it is that the overloaded constructor will also call the default constructor with the version I'm sending, as a result of which the initialized ArrayLists will be accessible from the overloaded constructor. Is that right, or am I completely confused?
source
share