subject

Which of the following statements about type compatibility is true?
an object of a subclass can be assigned to a reference to its superclass without a type cast

assigning an object of a superclass to a reference to one of its subclasses always causes a compilation error whether type casting is used or not

an object of a subclass can be assigned to a reference to its superclass, but type casting is required

an object of a superclass can be assigned to a reference to one of its subclasses without casting

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
Which of the following statements best describes it careers?
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 24.06.2019 10:50
In 2009 to 2010, how many social network users were reported as being victims of online abuse? a. 1 in 10 b. 100% c.1 in 100 d. 50%
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
You know the right answer?
Which of the following statements about type compatibility is true?
an object of a subclass c...
Questions
question
English, 27.09.2020 14:01
question
Mathematics, 27.09.2020 14:01
question
Mathematics, 27.09.2020 14:01