An attribute denotes a A part of an aggregate item, and so is used through analysis in addition to design to specific a singular property of the class If you inline an First price for your variable It's going to be performed implicitly from the constructor anyway. Here's a code https://elansector106gurgaonprojects.blogspot.com