Please do all 4 of them a-d Hame rset Design Lyut Reeences Mailings Revie Vies H
ID: 3917211 • Letter: P
Question
Please do all 4 of them a-d
Hame rset Design Lyut Reeences Mailings Revie Vies Help Tell me wihat you want to do Find Copy Replace Normal 1 No Spac Heading 1Ileacing 2 ubrile Suotle r Emphasis Intene.Strong Select Title ormat Painter Clipboard Styles Ldring a. relationship between a subclass and the superclass from which it was derived b. keyword used to check that the object it has been passed is of the correct type c. the ability of the same code to be used with objects of different types, producing different results d. a class that cannot itself be instantiated, but that exists instead as a superclass to hold common code and to declare abstract behavior a. relationship between a subclass and the superclass from which it was derived I Choose ] Choose instanceof b. keyword used to check that the object it has been passed is of the correct type abstract class interfacc is-a c.the ability of the same code to be used objects of different types, producing differenthas a results equals d. a class that cannot itself be instantiated, but that exists instead as a superclass to hold common code and to declare abstract IChoose ] Page 1 of 1 words [R English lUnited States) 9:23 PM OEExplanation / Answer
a) a relation between sub-class and super-class is said to have a is-a relationship.
Explanation: condider Vehicle is a super class and car and Van are more specifics things which are some type of vehicle. So we can term them as
"Car is a vehicle"
"Van is a vehicle"
b) instanceof is the operator in java which was used to check whether correct object is passed ot not.
c) polymorphism is the concept which was defined as taking multiple forms. That is same method is defined in different definitions in different subclasses.
d) abstract class is the one that cannot be instatntiated itself but can be used as a super class and can have constructors. This abstract class concept is used for
one of the oops concept of data abstraction