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)
Progress on the campaign manager
You can see that you can build tactical maps automatically from the world map data. You can place roads, streams, buildings. The framework ...
-
The tent smelled of ozone, sawdust, and cheap miracles. On a rickety stage, a man named Constantine adjusted the frayed cuffs of his tuxedo...
-
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...
-
My plan was to get the most use possible from the $5 raspberry Pi Zero that I managed to get my hands onto by buying a full kit that include...
No comments:
Post a Comment