class Student {
constructor(name, age) {
this.name = name
this.age = age
}
eat() {
console.log('meat');
}
}
Student.prototype.drank = function () {
console.log('water');
}
Student.play = function(){
console.log('basketball');
}
console.dir(Student);
