最近又開始看看程式語言書籍碰到一個比較難以理解的物件導向原本以為是新的技術之類的,上網做做功課查查資料所描述的都很學術與抽象我的腦袋太鈍時在難以理解,只好慢慢吸收研究研究。
物件導向是一種概念,我們人類的思維把他更簡單化套用在寫程式上面,原本程式設計是結構化,而物件導向則讓程式模組化更加靈活運用,高手也許也不懂物件導向不過呢!有這概念當一個程式在設計或是在規劃時候就可以加以運用,模組化程式。
例:
車,是一個物件
車裡面包含有方向盤、引擎、後照鏡、椅墊等,
然而方向盤、引擎、後照鏡、椅墊等這些東西,也是一個物件,
簡單的說,東西=物件。
那應用在程式寫作上,要「做」一台車時,就是把
方向盤、引擎、後照鏡、椅墊等這些東西寫好,在拼湊成一台車就是了。
然而一個物件就有其屬性、方法。
以車為例,
油量就是車的「屬性」,
採油門就是車的「方法」,
物件的繼承則是,「賓士汽車」是一台「車」,
也就是「賓士汽車」繼承於「車」,
「賓士汽車」繼承了車應有的特質,然後再由賓士廠房
改變其「屬性」和「方法」而成的。
I am really glad to read this website posts
回覆刪除which carries lots of valuable data, thanks for providing these
data.
my website ... book promotion
It is also enabled with 4G LTE, 3G HSPA and NFC
回覆刪除Connectivity. With the Samsung Galaxy literally taking the mobile phone world by storm, there is increased anticipation of the
arrival of the next generation Galaxy S smartphone handset.
The Samsung Galaxy S3 is, to begin with a LTE network
compatible smartphone handset that is capable of handling speeds
in the range of 30 to 60 mega bytes per second.
My blog samsung galaxy s4
Aw, this was a very good post. Finding the time and actual effort to create a really good article… but
回覆刪除what can I say… I put things off a lot and never seem to get nearly anything done.
My weblog ... diet plan to lose weight
And customers, he said, must be able to find and access content that they
回覆刪除desire. There are Blu-ray home theater systems which have the capability to stream Netflix, Pandora, You
- Tube, or other media applications, Apple TV and Roku XD is
technology that basically gives you the option to
not have to pay for a Blu-ray player. One of the biggest changes is the fact that Apple
has removed the permanent storage (hard drive) from the device.
my weblog - new apple tv
The Chromebook obviously still requires these updates but they are managed in a very different way.
回覆刪除The result is a battery life expectancy of around 8. The samsung chromebook
is essentially a laptop that can only surf the internet and run
apps.
The reason is - video-on-demand market is the only model that
回覆刪除works on subscriptions. Hulu have made sure set-top boxes such as Roku
cannot stream its content on your big screen tv.
A stable internet connection is needed, may it be
using a cable-powered connection or wifi.
Review my blog post :: roku box