OK, he posted this message, over 3PM on a Friday.... So, how many people
here are thinking "take-home exam" ?
Now, the first question that must be asked is, "What is the question?
Which is more important to OOP? or which is more important to good program
design?"
To the latter, Encapsulation (and data hiding) is, by far, the most
important design characteristic. Having your data properly factored in
objects is the primary key to a well-design program. If I had to put a
number of it, it would be about 65-75%. Polymorphic behavior come next,
which I'd put at about 10-20%. These leaves somewhere between 5-25% for
everything else, of which I'd put Inheritance rather low, maybe 0-5%.
Inheritance is an important technique in OOP, but it's just one technique to
implement polymorphism (one of many -- for example, generic programming
accomplishes many of the tasks of OOP without inheritance). We've learned
that deeply rooted class library are often more of a hinderance than a help,
and most modern class libraries tend to be very shallow.
--
Truth,
James Curran
[erstwhile VC++ MVP]
Home:
www.noveltheory.com Work:
www.njtheater.com
Blog:
www.honestillusion.com Day Job:
www.partsearch.com
"G.Ashok" <gw******@hotmail.com> wrote in message
news:Oz**************@TK2MSFTNGP09.phx.gbl...
Hi All,
What is your weightage of the 3 characteristics of Object-Oriented
Programming
i.e. Inheritance, Encapsulation and Polymorphism. for a total of 100%
Please quote your values and let's discuss how the people thinking about
OOP
:-)
Regards,
...@shok
------------------------------------------------------------------------
"It is beautiful for an engineer to shape and design the same way
that an artist shapes and designs. But whether the whole process
makes any sense, whether men become happier - that I can no
longer decide." - Rudolph Diesel