Answers for "typescript Identical Types"

0

typescript Identical Types

class Car {
  drive() {
    // hit the gas
  }
}
class Golfer {
  drive() {
    // hit the ball far
  }
}
// No error?
let w: Car = new Golfer();
Posted by: Guest on March-18-2022

Code answers related to "typescript Identical Types"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language