Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Polymorphism:
  2. The ability of one general thing to behave like other specific things.
  3. In Java, polymorphism can take two forms: method overloading and method overriding.
  4. Method overloading happens when various methods with the same name are present in a class.
  5. When they are called they are differentiated by the number, order, and types of their parameters.
  6. Method overriding occurs when the child class overrides a method of its parent.
  7. A Deer IS-A Animal
  8. A Deer IS-A Vegetarian
  9. A Deer IS-A Deer
  10. A Deer IS-A Object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement