Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,839 members, 7,956,164 topics. Date: Monday, 23 September 2024 at 06:26 AM |
Nairaland Forum / Science/Technology / Programming / Help On Java (9680 Views)
Pls Help Me With Ebooks On Java,d Price For The Book Is High And Am Still A Teen / Anyone With Help On Java App Creation? / [Help Request] Help On Java download and Installation Oo! (2) (3) (4)
(1) (2) (3) (4) (5) (Reply) (Go Down)
Re: Help On Java by Dolemite(f): 10:52pm On May 04, 2011 |
Fayimora:About what I'm about. . .even before he gave me the code I had built the gui on my own but still had to show appreciation because he took time off to do that for me. . . segsalerty:if(segsalerty.amused()==true) { seg.kill(); } |
Re: Help On Java by segsalerty(m): 11:04pm On May 04, 2011 |
Fayimora:i aint going anywhere, am gonna stay on here to watch u hommies till i tire Dolemite:uhmmm , while(Dolemite and others keeps posting){ i continue to dey watch! if(Dolemite.sex == "female" && Dolemite.getKiss() == true){ Smilez all over my face and happy break; } } |
Re: Help On Java by Olamilec(m): 7:22am On May 05, 2011 |
@Fayimora Thanks for the reply, i am very greatful to your kind gesture. My address is Samade House, Dada Estate, Osogbo - Osun State. Name: Adeniji Olamilekan. For the ebook, i will like you to send me anything about java, how i can use it to develop application. And the one that i can be using to practice like project base problem solving in the perspective of java. My email is olamilec@gmail.com i will be greatful if i can get the ebook email to my mail box asap. Thank you very much and God will also help you in time of your need. |
Re: Help On Java by csharpjava(m): 11:02am On May 05, 2011 |
Fayimora The way i normally explain things are; You are from a computer science background, your approach is good in the lab as you have all the time in the world to keep going in a loop. In the real world of application development the approach is that of Software Engineering, which is “if a code already exist use it” if you ask me why? Well it is because if you have a deadline in which to complete a project, then you just need the code, but the algorithms you can work out after. This is the reason some people come here just for the code only. For algorithms and the pseudo code they can work that out after. |
Re: Help On Java by Fayimora(m): 1:47pm On May 05, 2011 |
Your choice man! |
Re: Help On Java by csharpjava(m): 11:43pm On May 06, 2011 |
Dolemite Oh wow man thank you!! soooooooooo much, you don't know how BIG this is for me THANKS!!This makes me feel better than all the pseudo codes and algorithms in this world |
Re: Help On Java by Fayimora(m): 8:08pm On May 07, 2011 |
Olamilec: Sorry for the late reply, Ddnt realise you have replied my previous post. please send me an [email=mailto:fayimora@hotmail.co.uk]email[/email] and i would reply with significant materials to get you started. Also please state the spec of the system you would mostly be using so i can add additional materials if needed. Also I would advise you take off your details(home address) from your post Fayimora |
Re: Help On Java by Dolemite(f): 3:51pm On May 08, 2011 |
Can someone please explain to me in dummyproof terms what casting (upcasting, downcasting) means especially in objects, ive gone through tons of turorials and still can't seem to get it. . .in simple terms please. |
Re: Help On Java by Fayimora(m): 6:58pm On May 08, 2011 |
Basically what you need to really understand is casting. Whether down or up, its still casting. So am going to explain casting. First, you must understand, that by casting you are not actually changing the object itself, you are just labeling it differently. The main purpose of casting is Polymorphism. The ability to re-use objects with different instances. Take a look at this picture; Now say you have this;
Now The object i could have created is
But i want to be able to use an instance of cat, so what I do is cast the object reference of Mammal which is m to hold an instance of Cat class. Thats is what I have done above. If you are familiar with polymorphism, then its the same thing.
This can also be written as
Upcasting is normally done automatically but downcasting must be done manually. An example of downcasting is;
Now you have to note that thee is a criterion for casting. This s because a ClassCastException would be thrown if the class you are trying to cast is not an instanceof(more or less a subclass) the other class. Sorry if you don't understand. But you would understand better if you put it into practice. You should ask, is Cat a Mammal? Yes, it is - that means, it can be casted. Is Mammal a Cat? No it isn't - it cannot be casted. So yeah thats where inheritance comes into play. They must have tht is-a/an relationship. Be happy to answer any further questions. Good Luck |
Re: Help On Java by csharpjava(m): 7:38pm On May 08, 2011 |
Try this youtube video it should make it simple for you to understand https://www.youtube.com/watch?v=3ILIFUoFxmE |
Re: Help On Java by segsalerty(m): 9:53pm On May 08, 2011 |
Fayimora: nice one, Good! csharpjava:cool ! Dolemite: Hope u now understand wat these terms mean now? U surely need to understand all concepts of Programming , OOP in particular before GUI , lolz |
Re: Help On Java by abenmariem: 12:23pm On Aug 02, 2016 |
There is a difference between casting and conversion. In your case you need conversion. I recommend also this website to learn java casting. |
How Much It Cost To Build An App Like Uber Or Spotify / Q-basic Program To Compute Simple Interest. / Take Your Web Development Skill/Career To The Next Level By Creating A Web App
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 41 |