Inherit both the properties and methods from parent.