1 Ext.define('Sample.Developer', {
2 extend: 'Sample.Person',
9 languages: ['JavaScript', 'C++', 'Python']
12 constructor: function(config) {
15 // Apply a method from the parent class' prototype
16 return this.callParent(arguments);
19 canCode: function(language) {
20 return Ext.Array.contains(this.getLanguages(), language);
23 code: function(language) {
24 if (!this.canCode(language)) {
25 alert("I can't code in: " + language);
30 alert("I'm coding in: " + language);
38 var self = this.statics(),
39 cloned = new self(this.config);