Java Lesson #1: Class and Interface - ¿What is polymorphism?
|
08-27-2021, 08:47 PM
![]() |
|||
|
|||
RE: Lesson #1: Class and Interface - ¿What is polymorphism?
Begin with the main object, and think: ¿What will this object do? ¿what information do it need and it will pass? ¿what do i need for this object?
Based on this, write inside it square the functions and variables you would need for that object But in polymorphism, you don't need only a single object, you'll do more. So you must think after creating your first object: ¿what else do i need? ¿How can i use this main object i've created? ¿what will inherit it? Based on these you'll draw your inheritance tree Read the article, you'll have more information and clue how you'll make it [size=xx-small]Signature[/size] [URL=https://www.exophase.com/user/JoseskVolpe/][IMG]https://card.exophase.com/2/0/45687.png?1612237163[/IMG][/URL] [align=justify][size=x-small][b]OwO ¿¿¿What is this??? *wags tail* Take my beret plz 7w7 ~[/b][/size][/align] |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)