Algorithm for Constructor

Step-1:Create a maths class

step-2:Declared with a maths class private int variable,contructor ad showdata function

step-3:Intialize a varaible 'a' to 100 within the constructor

step-4:With in the main function create a instance of maths class to 'm'.

step-5:Call a method of showdata function using 'm'.