Typescript – Activating a class method in a separate class
I am working on a school assignment where I have to modify a vehicle selection interface to include a truck that can tow other vehicles. Vehicles that are not trucks cannot tow other vehicles. I created the Truck class in Truck.ts and created a method called tow.