You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
397 B
24 lines
397 B
/** @constructor */
|
|
function Article() {
|
|
}
|
|
|
|
Article.prototype = {
|
|
/** @constructor */
|
|
Title: function(title) {
|
|
/** the value of the Title instance */
|
|
this.title = title;
|
|
},
|
|
|
|
init: function(pages) {
|
|
/** the value of the pages of the Article instance */
|
|
this.pages = pages;
|
|
}
|
|
}
|
|
|
|
f = new Article();
|
|
f.init("one two three");
|
|
|
|
t = new f.Title("my title");
|
|
|
|
print(f.pages);
|
|
print(t.title); |