A Conversation for Object-oriented Programming

encapsulation

Post 1

manolan


When I think of OOP (or OOD for the purists), I always think of inheritance, encapsulation and polymorphism as the three important principles. I feel that, at the very least, the importance of defining the interface should have had a mention, but I didn't see one.


encapsulation

Post 2

Grendel

Not the point of the article, though. Took me long enough to get my head round OOP, I wrote it aimed at someone with complete ignorance of it. Stuff like that should be in 'OOP/D 2', which I encourage everyone to have a go at writing.


encapsulation

Post 3

manolan


Hmm. Not sure I agree, I think the fact that the interface is well-defined is v. important. However, it's your article and you have to balance the different factors.


encapsulation

Post 4

Grendel

Important yes, but as an introduction to the subject? I'll repeat it again; the whole article is an intro to the basic idea of OOP/D from the ground up. Everything has it's place, but not right at the start.


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more