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

Prototype Design Pattern #41

Open
code-xplorer opened this issue Mar 10, 2024 · 1 comment
Open

Prototype Design Pattern #41

code-xplorer opened this issue Mar 10, 2024 · 1 comment

Comments

@code-xplorer
Copy link

In the sample code of Prototype Design pattern, the User class is declared as an abstract class but just below that it's been instantiated with the new keyword which is a syntax error in Java as objects of Abstract classes can't be created.

@code-xplorer
Copy link
Author

code-xplorer commented Mar 10, 2024

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