1. A type of programming, that allows users to program in modular pieces.
2. A type of sexual fetish, where the afflicted insists on using foriegn items found around the house in order to heighten sexual pleasure.
1. C++ is my favorite object-oriented programming language.
2. Ozkirbus is just too object-oriented in the orgies for anyone to feel safe and have a good time.
24π 7π
the stimulation or manipulation of oneβs own ego by way of using object-oriented code in places where it has no advantage instead resulting in unnecessary complication and bloat.
Objective: Sum two numbers and print the result in the format βThe answer is: Xβ where X is the sum of the two numbers:
Object-oriented masturbation solution:
function MathLib(){
this.answer = null;
}
MathLib.prototype.sum = function (x,y){
this.answer = x + y;
}
MathLib.prototype.getAnswer = function(){
return this.answer;
}
function Printer(){
this.preText = β;
}
Printer.prototype.setPreText = function(str){
this.preText = str;
}
Printer.prototype.out = function (str){
document.write(this.preText + str);
}
// To run
var math = new MathLib();
var print = new Printer();
math.sum(1,1);
print.setPreText(βThe answer is: β);
print.out(math.answer);
59π 7π
The most overrated and overhyped programming paradigm on earth.
Frequently leads to over-engineering and is at the moment most commonly done using the Java programming language, which has a particularly shitty brand of object-orientation. Other popular object-oriented programming languages include C++ and C#.
Idiot: Man, that's such a hard project. Let's use object-oriented programming to make out life easier.
Rock-star programmer: You're fired.
36π 23π
Object-oriented programming (OOP)is a computer programming model. Unlike procedural programming, object-oriented programming uses objects to organize code. This is done with objects, classes, methods and attributes.
This approach to programming is well-suited for programs that are large, complex and actively updated or maintained.
some examples of object-oriented programming languages are: Java, C#, C++