Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Austin S.
UNC CS Grad, Computer Science Professional and Author
Tutor Satisfaction Guarantee
Java Programming
TutorMe
Question:

How do you invoke a superclass' method in a subclass?

Austin S.
Answer:

Simply use the super keyword in the subclass. For example, super.toString() will invoke the parent class' version of the toString() method.

Computer Science (General)
TutorMe
Question:

How do you convert a binary number to decimal?

Austin S.
Answer:

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.

C++ Programming
TutorMe
Question:

How do you read input from stdin into a char array using objects from the <iostream> header file?

Austin S.
Answer:

First, make sure to include the header file: #include <iostream> Then, in your main method, create the array: char exampleArray[50] Then, read input from stdin: cin >> exampleArray;

Send a message explaining your
needs and Austin will reply soon.
Contact Austin
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.