AttendenceRegisterExtended contract added which is inheriting from AttendenceRegister and includes a function which takes roll number as input and returns the details of the corresponding student.
Enhancements-
Removed "rollNumber = 0" from constructor in AttendenceRegister contract as solidity initialize uint variables with 0 by default.
This change also helped in reducing gas costs by ~3k units.
fixes #38
New file added-
AttendenceRegisterExtended contract added which is inheriting from AttendenceRegister and includes a function which takes roll number as input and returns the details of the corresponding student.
Enhancements-
Removed "rollNumber = 0" from constructor in AttendenceRegister contract as solidity initialize uint variables with 0 by default. This change also helped in reducing gas costs by ~3k units.
@Aniket-Engg please have a look.