On Sat, Jan 8, 2022 at 10:46 AM Duke Normandin <dukeofp...@gmx.com> wrote: > > I've /never/ been fond of OOP, but if I'm to continue with Pike, I > figure I should at least try to understand Pike's very of OOP. > > From: https://pike.lysator.liu.se/docs/tut/oop/creation_and_usage.md > > [quote] > Creating and Using Objects > > Assuming that we have the class animal, we can define some > variables that can be used to store animals. Remember that the > class is also a data type. We can also create some animals to put > in those variables. To create an animal, we use the syntax > *classname*(), i e the name of the class followed by a pair of > parentheses. > > animal some_animal; > some_animal = animal(); > animal my_dog = animal(); > [/quote] > > The three statements are confusing to me. > So a class called "animal" has been created and exists! OK .. > > "animal some_animal;" ?? Are we cloning the class here to create an > object?