QUESTION 6 You are given a super class called Animal and a sub-class (derived class) called Reptilian. The sub-class (derived class) has a method called insert(), but the super class does not have insert() method. Which of the following is the correct use of insert method? Ⓒa. Reptalian a = new Reptalian(); ...; a.insert(); b. Animal a = new Animal(); ... ......; a.insert(); Oc Animal a = new Reptalian(); › ....; insert(); Od Reptalian a= new Animal(); ....; a.insert();
please solve fast 🙏🏼
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
please solve fast 🙏🏼
please solve fast 
QUESTION 6 You are given a super class called Animal and a sub-class (derived class) called Reptilian. The sub-class (derived class) has a method called insert(), but the super class does not have insert() method. Which of the following is the correct use of insert method? Ⓒa. Reptalian a = new Reptalian(); ...; a.insert(); b. Animal a = new Animal(); ... ......; a.insert(); Oc Animal a = new Reptalian(); › ....; insert(); Od Reptalian a= new Animal(); ....; a.insert();
QUESTION 6 You are given a super class called Animal and a sub-class (derived class) called Reptilian. The sub-class (derived class) has a method called insert(), but the super class does not have insert() method. Which of the following is the correct use of insert method? Ⓒa. Reptalian a = new Reptalian(); ...; a.insert(); b. Animal a = new Animal(); ... ......; a.insert(); Oc Animal a = new Reptalian(); › ....; insert(); Od Reptalian a= new Animal(); ....; a.insert();