I've Google'd "calling base constructor", and I'm not getting the answers I need.
Here's the constructor I have;
public class defaultObject
{
Vector2 position;
float rotation;
Texture2D texture;
public defaultObject(Vector2 nPos, float nRotation, Texture2D nTexture)
{
position = nPos;
rotation = nRotation;
texture = nTexture;
}
}
Now I have that in place, I want to inherit the constructor and all its workings. This is what I'd expect to do;
public class Block : defaultObject
{
// variables inherited from defaultObject
public Block : defaultObject; //calls defaultObject constructor
}
Why can't I do that?