For cat and animal class, correct way of inheritance in java is :.

A. Class cat extends animal
B. Class animal extends cat
C. Both a & b are correct
D. None is correct
View Answer

A. Class cat extends animal

5 1 vote
Question Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x