Skip to content

Instantly share code, notes, and snippets.

@singhrahuldps
Created April 30, 2020 13:56
Show Gist options
  • Save singhrahuldps/1601d5130e500c1809661c3b5505a743 to your computer and use it in GitHub Desktop.
Save singhrahuldps/1601d5130e500c1809661c3b5505a743 to your computer and use it in GitHub Desktop.
// We can't create an object of Device class
// Device device = new Device(); is not allowed
Device mp = new MediaPlayer();
mp.switchOn();
mp.switchOff();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment