+ 1
A1:Concepts of Humanizing Objects and Classes.
Get some insight from the three basic functionalities of OOP , Identity, Attribute, Behaviour. If looking into the '3 dimensions' concept , which I believe should be how source codes are stored systematically , for reuses; ought to be able to further Object Oriented to more dimensions? I want an object 'humanLife' , which concludes every person's life from the moment born , to the last moment died. Every incident , event happened within his life span are included and concluded real time! Now I figure that more dimensions are needed to record a person's life. Want some comments and discussions from anyone.
2 Respuestas
+ 2
A3: another conception is 'class interfaces'.
a person interfaces with anither person; interfaces with an animal; with a plant.
From interfaces, there are data exchanges.
Now an event takes place in 'finite' place and time. Can I say I interface with a car, with a trip? Treat them as classes or objects too. Interfaces with them too take places in 'finite' time and spaces.
When I am having meal in a restaurant, inteface with the restaurant, exchanging time and place data. Just give a name of the restaurant, like a personal class or object.
+ 1
A2:Extension from HumanLife:
-The concept is , on planet Earth there are living things like Humans, Animals, Plants.
-By programming, it should be able to derive AnimalLife, PlantLife too. But of course, today's social structures allow some very comprehensive personal data, from every means; and not as good for animals and plants.
-Still animals and plants objects can keep records of their classifications and species. More data will require more human-animals/plants interactions.
* Back to HumanLife, in my mind, may better do this:
- create globally templates: class HumanLife { } , than for every individual we can use personal names for identities. construct HumanLife AlexisLee;
- so than, there are over 60 billions objects derived from the template.
- if however, AlexisLee may be constructed as individual class too, we may need to do this: class HumanLife <genericType>; and derive over 60 billions individual classes.
-from class AlexisLee { }, class DonaldTrump { }, go on to other data records.