In Germany, a house will grow in value over the years (perhaps current economic climate excluded) but an Igloo will loose all of its value in summer (it will melt!).
From last week's Perl course, where I briefly covered object orientation in Perl (the course briefing only asked me to cover it briefly), I present [here]
my Igloo and House example - defining classes of house and igloo, and providing different methods to get the value of each type after a number of years.
I also went on to separate out the class(es) from the main code in a further example - the main code is [here]
and the extra classes are [here]
. You'll note that I've inherited all classes from a base class thing
into which I wrote an AUTOLOAD method. That way, I can set and get all my properties (attributes) of all the object types without having to write lots of accessor methods. Perl is REALLY neat, if a trifle unconventional at time!
Illustration - a variety of housing in Frankfurt
... but none of it is igloos!
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articlesP218 - Perl - More Objects 
Changing what operators do on objects - a comparison across different programming languages - (2014-12-26) 
Object factories in C++, Python, PHP and Perl - (2014-12-19) 
Using object orientation for non-physical objects - (2013-05-22) 
Perl design patterns example - (2013-05-20) 
Building an object based on another object in Perl - (2012-12-03) 
Perl - calls to methods that use => - what do they mean? - (2012-01-16) 
What do I mean when I add things in Perl? - (2011-08-02) 
Learning Object Orientation in Perl through bananas and perhaps Moose - (2010-12-21) 
Making Perl class definitions more conventional and shorter - (2010-12-20) 
Some more advanced Perl examples from a recent course - (2010-09-27) 
Different perl examples - some corners I rarely explore - (2010-07-18) 
The Multiple Inheritance Conundrum, interfaces and mixins - (2010-04-11) 
Calculation within objects - early, last minute, or cached? - (2010-02-26) 
Operator overloading - redefining addition and other Perl tricks - (2009-09-27) 
Nuclear Physics comes to our web site - (2008-12-17) 
Calling base class constructors - (2008-10-03) 
Factory method example - Perl - (2008-06-04) 
Example of OO in Perl - (2008-06-03) 
Object Oriented Programming in Perl - Course - (2007-11-18) 
Perl for Larger Projects - Object Oriented Perl - (2007-08-25) 
What are factory and singleton classes? - (2007-06-04) 
-> , >= and => in Perl - (2006-11-18) 
Comparison of Object Oriented Philosophy - Python, Java, C++, Perl - (2006-08-13) 
Think about your design even if you don't use full UML - (2006-03-24) 
NOT Gone phishing - (2006-02-05) 
Changing @INC - where Perl loads its modules - (2006-02-02) 
Packages in packages in Perl - (2005-12-16) 
When to bless a Perl variable - (2005-03-15) 
Bellringing and Programming and Objects and Perl - (2005-02-25)
Some other Articles
switch and case, or given and when in PerlPython - splitting and joining stringsIterating over a Perl list and changing all itemsWhat is Perl?Igloos melt in the summer, but houses do notA course review - for the tutor to completeFrankfurt in 90 minutesFrom home to Nurnberg - journey picturesCanal through Melksham - the options and issuesMacho matching - do not do it!