In Java
The method toString takes multiple arguments and returns a string.
Inheritance is also known as the ___________________.
Select the correct answer
knows-a relationship
is-a relationship
has-a relationship
uses-a relationship
Which of the following is NOT a superclass/subclass relationship?
Select the correct answer
Sailboat/speedboat
Employee/Hourly Employee
Vehicle/Car
none of the above
Overloaded methods are bonded using ______________ binding, while overridden methods are bonded using _______________ binding.
Select the correct answer
static, dynamic
dynamic, static
Question 1: The method toString does not takes multiple arguments and returns a string. Answer: False Question 2: Inheritance is known as the is-a relationship. Answer: is-a relationship Question 3: Sailboat/speedboat NOT a superclass/subclass relationship Answer: Sailboat/speedboat Question 4: Overloaded methods are bonded using static binding, while overridden methods are bonded using dynamic binding. static, dynamic
Get Answers For Free
Most questions answered within 1 hours.