Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method: Result (overriding) #14

Open
NoahSamson opened this issue Oct 24, 2017 · 0 comments
Open

Method: Result (overriding) #14

NoahSamson opened this issue Oct 24, 2017 · 0 comments

Comments

@NoahSamson
Copy link

In the class folder, create a class Result, that has a method getResult which prints 'pending', It has two subclasses Passed, and Failed. Each of these subclasses have the method getResult, that prints 'passed' and failed respectively. Call the methods by creating objects of the three classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant