Literally translated into many faces, this word is a crucial strategy for creating flexible and scalable code. Polymorphism is not something you build into your classes but rather an idea to build your classes around which is what makes it so powerful. Making something polymorphic is as simple as ad[...]
Archive for the ‘Principles’ Category
Encapsulation
Encapsulation is the process of masking specific methods and properties within a class to prevent any other classes from having to be concerned with what they should not know about such as the implementations of a method or the retrieval of a property. KEY FEATURES:* 1. Implementation hiding-not jus[...]
Implementation hiding-not just information hiding
The idea behind any class, is to give the class only what it needs/requires to give it the ability to function as the actual object is intended. A simple example of this would be if I were to create a class Jaguar. I first ask myself, what makes up a real world jaguar, and then [...][...]
Segregate Change
Change is the star and needs to be treated as the Diva it is[...]
Abstraction
Abstraction by definition in a nutshell means vague. Consider an abstract class to have just enough to get a point across yet absent of specifics and details giving the abstraction a much larger group to make up of similar items and represent a common thing. Let’s use the example: the Guitar. [...]