a) Create a class[class CStest] of which only a single object can be made. In the class make three private member functions with same signature(function names - fn1,fn2,fn3). The three functions when called set the value of the class member variable [ int x] accordingly( eg: fn1 sets x=1; fn2 sets x=2; fn3 sets x=3). Create a method that returns the function pointer of one of the three functions (fn1,fn2,fn3) depending on a parameter passed to it (1 for fn1, 2 for fn2, 3 for fn3). Make a public member function println to display the value of member variable x.
b) Create a program to use above class. Create an object of class [CStest] and then get the pointer of function fn3. invoke function fn3 from the obtained function pointer. invoke println method of CStest class from the object. End the program releasing any allocated resources.