How do you invoke a superclass' method in a subclass?
Simply use the super keyword in the subclass. For example, super.toString() will invoke the parent class' version of the toString() method.
How do you convert a binary number to decimal?
The rightmost binary digit represents 2^0, so if there is a 1 in this place, that represents 1 in decimal. The next binary digit to the left represents 2^1, so if there is a 1 in this place, that represents 2 in decimal. The next binary digit to the left represents 2^2, so if there is a 1 in this place, that represents 4 in decimal. So, binary 1 is equal to decimal 1, binary 10 is equal to decimal 2, binary 100 is equal to decimal 4, and so on.
How do you read input from stdin into a char array using objects from the <iostream> header file?
First, make sure to include the header file: #include <iostream> Then, in your main method, create the array: char exampleArray Then, read input from stdin: cin >> exampleArray;