Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:00, raquelle66
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, summerhumphries3
What are some settings you can control when formatting columns?
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, jadaroyval
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
image
Computers and Technology, 24.06.2019 02:00, sameh0425
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
Do you know the correct answer?
Which of the following statements about type compatibility is true?
an object of a subclass c...

Questions in other subjects:

Konu
Mathematics, 11.05.2020 09:57