can you answer me shortly and simply, im wondering about inheritance and interfaces, if…
- User
can you answer me shortly and simply, im wondering about inheritance and interfaces, if i can just make an interface and make a bunch of classes that implement it for example i can make an interface for vechicle and make car, bus, and bicycle implement it, I can still make a car like Vechice myCar = new Car(); then why would I ever make vechicle a superclass that the rest inherits from rather than just making it an interface, to me that seems much simpler and less code
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.