Design a class named Number. Create two sub classes ComplexNumber, RealNumber. Design the various methods in the above three classes…
Design a class named Number. Create two sub classes ComplexNumber, RealNumber. Design the various methods in the above three classes using the concepts of inheritance.