Class B inherits A, but the data field in i in A is not inherited.
Class B inherits A and automatically inherits all data fields in A.
When you create an object B, you have to pass an integer such as B(5).