polymorphism
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
Difference between C++ Class and C struct
C struct and C++ class structure is similar but by the default they have a difference in data hiding.
In struct doesn’t provide data hiding by default but class provides data hiding by default.
And the other difference is, class provides us to polymorphism and inheritance features.
We said class structure data hiding is coming default but what it means?
It means when we have a struct it is public by default so we can access our struct model wherever are we
By myCar i can access my model,horsePower or producer because it works like public variable but same structure with class
like › Continue reading
Tags
Recent Posts
- PriveMall Davetiye
- Polymorphism (Overloading)
- Nautilus ve Ssh Bağlantısı
- Highlighting Nano
- Difference between C++ Class and C struct
- Gcc 4.3 and Header issues
- Re-Enable restarting X server with Ctrl+Alt+Backspace in Jaunty
- I Installed BETTER
- Ruby’de Sayiyi Yaziya Ceviren Program
- Ubuntu Volume Wheel Problem [ Fix ]
- Google Android
- Encoding mysql dump file while importing from console
- Ubuntu altinda mp3 kesmek {Cutting mp3 files over ubuntu}
- Flv’den mp3 elde eden bash programi {Converting flv to mp3}
- Video Sitelerinden İçerik İndirmek ve Videolardan Ses Almak