You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: