Created
November 2, 2017 18:22
-
-
Save yusufcakal/4fd4f824285429a78b97d91059853d69 to your computer and use it in GitHub Desktop.
Medium Post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ComputerFactory { | |
| public static Computer createComputer(Class aClass) throws IllegalAccessException, InstantiationException { | |
| return (Computer) aClass.newInstance(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment