Understand subtype polymorphism in C++/Java

1.Which of the following is NOT a rule for method overriding?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

2.Suppose you are developing a program for a library that has different types of books, including fiction, non-fiction, and reference books. Each book has a title, an author, and a publication date. Which of the following statements about using polymorphism to implement a method that displays the details of a book is true?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

3.In a car rental system, there are different types of vehicles such as Sedan, SUV, and Hatchback. Each vehicle type has different features and specifications. To implement this in Java, which of the following statements about subtype polymorphism is correct?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation