- 1
Explain Adding methods in java
Methods
3 Respuestas
+ 1
JavaScript is not the same as Java.
Did you mean JavaScript?
If so see this.
Brief explanation
https://www.w3schools.com/js/js_object_methods.asp
Detailed explanation
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects#defining_methods
+ 1
class Car {}
class Car2 extends Car {
void newMethod() {}
}
0
Adding methods?