Newbie - what is the meaning of ":" in this code?

  • Thread starter Thread starter Zalek Bloom
  • Start date Start date
Z

Zalek Bloom

Here is part of this code:


public class Stack
{
readonly int m_Size;
int m_StackPointer = 0;
object[] m_Items;
public Stack():this(100)
{}
public Stack(int size)
{
......

what is the meaning of this command:
public Stack():this(100)
{}


Thanks,

Zalek
 
Here is part of this code:

public class Stack
{
readonly int m_Size;
int m_StackPointer = 0;
object[] m_Items;
public Stack():this(100)
{}
public Stack(int size)
{
.....

what is the meaning of this command:
public Stack():this(100)
{}

This constructor "calls" the other constructor.

Arne
 
Back
Top