[Solved] Unexpected issue with method overriding [closed]
[ad_1] First you need to correct the syntax for the method Price(), you forgot to use parenthesis just after the method name in both the classes. Then you need to make the return value of Price() method in the class Ticket to an int value like 0 or 1. Because your return type is int … Read more