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, 21.06.2019 19:30
Entering key dates from your course syllabi test and quiz dates, assignments due dates in your planner can you manage your schedule by allowing you to see commitments ahead of time.
Answers: 3
question
Computers and Technology, 22.06.2019 00:30
At an open or uncontrolled intersection, yield if a. your road is paved and the crossroad is not b. the cross road is paved and yours is not c. you have two or more passengers in your vehicle d. you did not yield in the last intersection
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
You know the right answer?
Which of the following statements about type compatibility is true?
an object of a subclass c...
Questions
question
Mathematics, 15.03.2022 17:00
question
Mathematics, 15.03.2022 17:00
question
Mathematics, 15.03.2022 17:00
question
Mathematics, 15.03.2022 17:00
question
Social Studies, 15.03.2022 17:00
Questions on the website: 13722367