I want to derive a class from Microsoft.Kinect.JointCollection class.
public class Derived : JointCollection
{
public string NewItem;
public Derived ()
{
}
}
Error:
The type 'Microsoft.Kinect.JointCollection' has no constructors defined.
What is the problem and how can I solve it?
http://msdn.microsoft.com/en-us/library/ms228387%28v=VS.80%29.aspx
The
Microsoft.Kinect.JointCollectionclass does not contain a public constructor [2] so whenever you attempt to instantianteDerivedit fails because a public constructor is not available on the base class.You could consider wrapping the
JointCollectionclass with your derived class and providing the appropriate methods to access it inDerivedthat do little more than call methods onJointCollectiondirectly.