Okay, so I know what Object Parent to Child Inheritance is but, can someone explain to me what's going on in this constructor of this class?
using System;
using DarkRift.Server;
public class PluginExample : Plugin
{
public override bool ThreadSafe => false;
public override Version Version => new Version(1, 0, 0);
public PluginExample(PluginLoadData pluginLoadData) : base(pluginLoadData)
{
}
}
This is an example plugin I created with DarkRift Networking. I know that the class is extending the Plugin class (Meaning that the PluginExample class is a child of the Plugin class and that Plugin class is the parent class.) but, what I was trying to figure out was, what's going on with the constructor for the class?
public PluginExample(PluginLoadData pluginLoadData) : base(pluginLoadData)
{
}
I've never seen a constructor like this with other languages so I was wondering if this was a C# thing. I still got my code to work however, I was wondering what this may be exactly so perhaps I can use it to my advantage. It may be something that's only with DarkRift? Any explanation?