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

[아이템 22] where 절이 java 코드로 변환되었을 때 어떻게 되는지 #257

Open
Gobukgol opened this issue May 3, 2022 · 0 comments
Assignees

Comments

@Gobukgol
Copy link
Contributor

Gobukgol commented May 3, 2022

질문 : https://atoz-develop.tistory.com/entry/JAVA-%EC%A0%9C%EB%84%A4%EB%A6%ADGenerics-%ED%81%B4%EB%9E%98%EC%8A%A4%EC%99%80-%EB%A9%94%EC%86%8C%EB%93%9C

java에도 비슷하게 가능 확인요망

class BoxMaterial implements Hard { }
class Paper extends BoxMaterial { }
class Plastic extends BoxMaterial { }
interface Hard { }

public class AAA<M extends BoxMaterial & Hard>
@Gobukgol Gobukgol self-assigned this May 3, 2022
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