dedomil.net - Mobile Games Forum
Java Lesson #1: Class and Interface - ¿What is polymorphism? - Printable Version

+- dedomil.net - Mobile Games Forum (http://dedomil.net/forum)
+-- Forum: Devs & Mods Section (/forumdisplay.php?fid=31)
+--- Forum: Help (/forumdisplay.php?fid=34)
+--- Thread: Java Lesson #1: Class and Interface - ¿What is polymorphism? (/showthread.php?tid=5730)

Pages: 1 2 3 4 5 6 7


RE: Lesson #1: Class and Interface - ¿What is polymorphism? - star cash - 08-27-2021 08:37 PM

(08-27-2021 08:08 PM)JoseskVolpe Wrote:  
(08-27-2021 01:32 PM)star cash Wrote:  Ok what we need to do is to create car image?

You don't need to right now
You'll draw a inheritance graph tree, photoshoot it and attach it here

e.g:
[Image: hYtnkR0.png]

how do i draw the tree?


RE: Lesson #1: Class and Interface - ¿What is polymorphism? - JoseskVolpe - 08-27-2021 08:47 PM

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


RE: Lesson #1: Class and Interface - ¿What is polymorphism? - Abidemhie - 08-27-2021 09:05 PM

Am trying new one tomorow.


RE: Lesson #1: Class and Interface - ¿What is polymorphism? - star cash - 08-27-2021 09:42 PM

Well that will be soo hard but i will try my best


RE: Java Lesson #1: Class and Interface - ¿What is polymorphism? - star cash - 09-09-2021 12:09 PM

(07-08-2021 01:14 AM)JoseskVolpe Wrote:  Read it when you can. And don't forget to do the activity

How can a class file be overwritten?


RE: Java Lesson #1: Class and Interface - ¿What is polymorphism? - JoseskVolpe - 09-09-2021 08:40 PM

Class file is a compiled code, you can see that in Ether lesson #1 about compilers.
They are overwrite after you recompile your code


RE: Java Lesson #1: Class and Interface - ¿What is polymorphism? - star cash - 09-09-2021 08:45 PM

(09-09-2021 08:40 PM)JoseskVolpe Wrote:  Class file is a compiled code, you can see that in Ether lesson #1 about compilers.
They are overwrite after you recompile your code

Overwrite a class file somehow mean editing a class file?


RE: Java Lesson #1: Class and Interface - ¿What is polymorphism? - JoseskVolpe - 09-09-2021 09:00 PM

You would need a HEX editor or, better, something that parses the bytecode to Java Assembly to modify that
There are also other tool to do that
It's also possible to decompile to get the high-level Java code. I don't know any tools for J2ME that does that tho
Have in mind most classes are obsfuscated