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

Generic for Return Child Class Type in Abstract Class Implementation #1178

Closed
huan opened this issue Apr 29, 2018 · 0 comments
Closed

Generic for Return Child Class Type in Abstract Class Implementation #1178

huan opened this issue Apr 29, 2018 · 0 comments

Comments

@huan
Copy link
Member

huan commented Apr 29, 2018

By using Type Inference, we can return a MockContact type right inside the static method in Contact class.

See: https://stackoverflow.com/q/43003970/1123955

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

No branches or pull requests

1 participant