A blog devoted to challenging dogma, where ever and who ever is shoveling it.
Monday, April 23, 2012
Object Oriented Programming
Object - Is data grouped with it’s methods.
Class - Is the framework of an object. There are two levels to an object, the object itself and it’s class instance, with data and methods possible at each level.
Interface - Is the contract that an object has with it’s callers.
Package - A code module, with it’s own name space
Inheritance - The way you can reuse an existing class while extending it’s functionality for a more specific case.
Encapsulation - not allowing anything outside the objects methods direct access too an objects data.
Basically with object oriented programming you create an interface that groups functions, state and data together as a single unit. The interface should do only one thing, but should do it well. Since the interface is very simple and is only performing a fixed set of functions it is easy to test the interface, and to reuse the interface in other places.
Subscribe to:
Post Comments (Atom)
The Digital Town Hall: Architectural Constraints as Democratic Defense
J. Rogers, SE Ohio. A Sociological Analysis of the Distributed Dunbar Protocol 1. Abstract The transition from analog democratic feedback l...
-
The tent smelled of ozone, sawdust, and cheap miracles. On a rickety stage, a man named Constantine adjusted the frayed cuffs of his tuxedo...
-
First the bad news. For som e reason the Amazon Web S ervice console was running very badly under F irefox. It was taking forever to load a...
-
So, I saw this kit on Amazon. It seemed too good too be true. The kit was priced right, it was less than 2 dollars for each board. Of co...
No comments:
Post a Comment