Skip to content

Instantly share code, notes, and snippets.

@anjanashankar9
Created January 4, 2021 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjanashankar9/55a7834cf8ca1943b36daff3b1d5b80e to your computer and use it in GitHub Desktop.
Save anjanashankar9/55a7834cf8ca1943b36daff3b1d5b80e to your computer and use it in GitHub Desktop.
public class Circle implements Shape {
@Override
public String draw() {
return "This is a circle !!!";
}
}
public class Rectangle implements Shape {
@Override
public String draw() {
return "This is a Rectangle !!!";
}
}
public class Square implements Shape {
@Override
public String draw() {
return "This is a Square !!!";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment