PrepAway - Latest Free Exam Questions & Answers

Which one of the following code samples will create a c…

Your project, which uses prototype.js, contains the JavaScript class Photoviewer (see EXAMPLE, below).
Which one of the following code samples will create a class called AdvancedPhotoViewer that extends
Photoviewe r?
EXAMPLE:
var PhotoViewer = Class.create();

PrepAway - Latest Free Exam Questions & Answers

A.
var AdvancedPhotoViewer = new PhotoViewer()

B.
AdvancedPhotoViewer.prototype = Object.extend (new PhotoViewer ()

C.
var AdvancedPhotoViewer = Class.extend (PhotoViewer)

D.
AdvancedPhotoViewer = PhotoViewer.extend ()


Leave a Reply

Your email address will not be published. Required fields are marked *