|
This is just a point of curiosity on my part. What category would the following scenario fall under,inheretance, extension? Can anyone give me an example of how this would be accomplished in OO and/or procedural? You have an object called a fitzle. It has three properties. 1. It can hold data. 2. It can have data written to it. 3. It can have its data read. You want to use this fitzle object in several ways but you need a few additional properties for each. First, you want it to be usable for displaying data. You also want to use it to format data being printed. Thirdly, you want to organize data in this fitzle object in a particular sequence. So for all three you feel you need to add the properties "type of file", "device type", "record format". You now want to differentiate these fitzle objects further. To the fitzle object you will use for displays you add the properties "display type" and "maximum devices". For the fitzle object you use for printing you add the properties "page size", "lines per inch", and "characters per inch". For the one being used to organize data you add "key field". "key field" has the properties "sequence" and "data type". Gary Monnier - Senior Software Developer 19426 68th Ave. S Kent, WA 98032 (253) 872-7788 ext. 308 gary.monnier@xxxxxxxxxxxxx www.powertech.com This email message and any attachments are intended only for the use of the intended recipient named above and may contain information that is privileged and confidential. If you are not the intended recipient, any dissemination, distribution, or copying is strictly prohibited. If you received this email message in error, please immediately notify the sender by replying to this email message or by telephone and delete the message from your email system. Thank you.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.