You can inherit attributes but should be careful regarding their access modifier. Only protected attributes can be accessed directly by sub classes.