Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+18 votes

▪ For which relationships of TypeA and TypeB will this code compile:

    TypeA objectA = new TypeB();

▪ In what situations will casting (TypeA) objectB cause an error?

asked in CSC305 Fall 2022 by (1 point)

1 Answer

+8 votes
  • Relationship between Type A and TypeB: here
  • Casting situation: here
answered by (1 point)
...