Which two code segments should you use?

You are creating a class named Sedan that must inherit from the Car class. The Sedan class must modify the inherited fourDoor () method.

The Car class is defined as follows.

Future instances of Sedan must be created with the overridden method.

You need to write the code to implement the Sedan class.

Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)

A . Option A
B . Option B
C . Option C
D . Option D

Answer: B, C

Explanation:

* The Object.prototype property represents the Object prototype object.

* Object.prototype.constructor

Specifies the function that creates an object’s prototype.

* Example:

Employee.prototype = new Person();

var Customer = function(name) {

this.name = name;

};

Customer.prototype = new Person();

var Mime = function(name) {

this.name = name;

this.canTalk = false;

};

Mime.prototype = new Person();

Reference: Object.prototype

Latest 70-480 Dumps Valid Version with 288 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments