Polymorphism (Overloading)

Polymorphism { Overloading } means simply, same methods makes different jobs in different objects.Like how ?
Let’s say we are writing java code and we are using JCheckBox ,JTextField and JButton components.When we try to use setText method for all of them the response suppose to be same,but checkbox writes the text near to checkbox icon ,textfield writes to text into itself and button object writes to text on the button.It shows us the polymorphism because same method worked different for different object.This property called polymorphism or overloading.
› Continue reading

Tags: , , ,

Tuesday, May 19th, 2009 C & C++, Java, Programming, Uncategorized 1 Comment

Google Android

Lets develop mobile applications with using google android SDK.

Firstly we have to download Eclipse (at least i download it 😛 ).From Eclipse.Org

after that extract it some where and open Eclipse 3.4 Ganymede

  1. Start Eclipse, then select Help > Software Updates….
  2. In the dialog that appears, click the Available Software tab.
  3. Click Add Site…
  4. Enter this as the Location:
    Alternatively, you can use http in the Location URL, if you are having trouble with https (https is preferred for security reasons).
    Click OK.
  5. Back in the Available Software view, you should see the plugin. Select the checkbox next to Developer Tools and click Install…
  6. On the subsequent Install window, “Android Developer Tools”, and “Android Editors” should both be checked. The Android Editors feature is optional, but recommended. If you choose to install it, you need the WST plugin mentioned earlier in this page. Click Next.
  7. Accept the license agreement and click Finish.
  8. Restart Eclipse.

After all these operations lets add our SDK.Download sdk from here

Extract your sdk somewhere and add your sdk’s path with clicking Window->Preferences-Android

then with using browse select your sdk location. That’s it.Lets watch how its simple to write code for mobile phones.
› Continue reading

Tags: , , , , , ,

Thursday, March 5th, 2009 Java, Programming Comments Off on Google Android