473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

What is your weightage of the 3 characteristics of Object-Oriented Programming....

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

Nov 21 '05 #1
7 1552
"G.Ashok" <gw******@hotmail.com> a écrit dans le message de news:
Oz**************@TK2MSFTNGP09.phx.gbl...
What is your weightage of the 3 characteristics of Object-Oriented
Programming
i.e. Inheritance, Encapsulation and Polymorphism. for a total of 100%


What about Aggregation, Composition and Delegation ?

Joanna

--
Joanna Carter
Consultant Software Engineer
Nov 21 '05 #2
I don't know about "relative weightage"... I don't know if that even
means anything.

However, I claim that Encapsulation is usually the principle that has
the most ready application... it's easiest to see immediate and direct
advantages to encapsulation, so it's easy for old procedural
programming hacks like me to see what it's for.

Next comes Inheritance, which doesn't make a whole lot of sense unless
you first understand encapsulation. After writing a lot of stand-alone,
encapsulated classes, it starts to make sense why you'd want
inheritance.

Finally, Polymorphism is the most abstract of the three. Once you have
encapsulation and inheritance, you start to see scenarios in which
polymorphism would be useful.

This says nothing about their relative importance to success of
software projects, or their frequency of use in the industry. It's just
the order in which I recommend that programmers new to O-O tackle them,
becaues the benefits of each tend to be clearer when approached this
way.

Nov 21 '05 #3

Joanna,

Delegation, Containment, are all I think design patterns and not key
characteristics of OOP. These are all used in VB6 like langauages. Rest of
the things are conceptual terms of OOA and OOD etc. of cource all are
applied to OO.

Regards,
....Ashok
"Joanna Carter (TeamB)" <jo*****@nospamforme.com> wrote in message
news:e4*************@TK2MSFTNGP15.phx.gbl...
| "G.Ashok" <gw******@hotmail.com> a écrit dans le message de news:
| Oz**************@TK2MSFTNGP09.phx.gbl...
|
| > What is your weightage of the 3 characteristics of Object-Oriented
| > Programming
| > i.e. Inheritance, Encapsulation and Polymorphism. for a total of 100%
|
| What about Aggregation, Composition and Delegation ?
|
| Joanna
|
| --
| Joanna Carter
| Consultant Software Engineer
|
|
Nov 21 '05 #4
"G.Ashok" <gw******@hotmail.com> schrieb:
Delegation, Containment, are all I think design patterns and not key
characteristics of OOP. These are all used in VB6 like langauages. Rest of
the things are conceptual terms of OOA and OOD etc. of cource all are
applied to OO.


Encapsulation and polymorphism are no typical OO features too, they can be
implemented in simple procedural programming languages up to a certain
extent.

PIE (polymorphism, inheritance, and encapsulation) is a minimal subset of
language features which are required for a programming language language to
be called an object-oriented programming language. Each of the features
alone doesn't necessarily have to do with object-orientation.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
JAL
#1 The use of objects.

Nov 21 '05 #6
#1 the use of reusable and redesignable classes. From which as much objects
as needed can be instanced.

For me is the rest academically, nice when you learn it, however like
driving not important anymore when you drive a car. most things go
automatic.

Cor
Nov 21 '05 #7
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

Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
18
by: Matt | last post by:
Hi, I have a probelm here: If I declare: char *p="Hello";
100
by: E. Robert Tisdale | last post by:
What is an object? Where did this term come from? Does it have any relation to the objects in "object oriented programming"?
51
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
13
by: ranjeet.gupta | last post by:
Dear All What does exactly below code means struct File { void* data; }; typedef struct File File; typedef File* fl;
64
by: ng5000 | last post by:
Hi, What's the point of a signed char? As I see it a char represents a character (not an integer, use an int type e.g. short int if you want an 8 bit number, or one of the new types, uint8 I...
39
by: windandwaves | last post by:
Hi Folk I have to store up to eight boolean bits of information about an item in my database. e.g. with restaurant drive-through facility yellow windows
50
by: lovecreatesbea... | last post by:
Could you extract examples of the characteristics of C itself to demonstrate what the advantages of C are? What are its pleasant, expressive and versatile characteristics? And what are its...
10
by: timor.super | last post by:
Hi all, Imagine I've an array of int : int anArray = new int; I want to extract all the integer that are superior to 500 I can do :
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.