A class One with data members int a and char b inherits from another class Two with data members float f and int x. Write definitions for One and Two for the following situations:
(i) Objects of both the classes are able to access all the data members of both the classes.
(ii) Only the members of class One can access all the data members of both the classes.