Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,912 members, 7,838,253 topics. Date: Thursday, 23 May 2024 at 06:05 PM

Object Oriented Analogy Using Man & Woman - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Object Oriented Analogy Using Man & Woman (1459 Views)

A Beginners Guide To Object-oriented Programming (OOP) In PHP 5+ / Let's Learn Object Oriented PHP! / Criticism Of Object Oriented Programming (2) (3) (4)

(1) (Reply)

Object Oriented Analogy Using Man & Woman by chatykrew(m): 4:40pm On Jul 16, 2007
if i may say i undertsand oo (object oriented), can this analogy be correct?

man (object) >> sperm(method) >> woman(object) >> pregnancy (event) >> baby (object)+encapsulation, inheritance.

Wat i mean is the man is an object gives his sperm (method) to the woman(object). the woman becomes pregnant(event) and later reacts and produces a baby(object) which conatains(inheritance) the chromosomes of the two objects.

please i hope someone undertsands and corrects/improves this analogy. thanks

(1) (Reply)

C# Programming / Programmers Prove Your Self / Mcitp, Ccna Or Oracle Dba

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.