+ 8

Inheritance and Syllogism

Can we say that Inheritance has been inherited from Aristotle's Syllogism? All men are mortal. (major premise) Socrates is a man. (minor premise) Therefore Socrates is mortal. (conclusion)

23rd Apr 2017, 3:56 PM
Daniele Gaito
Daniele Gaito - avatar
3 ответов
+ 8
In Module 7 "Inheritance & Polymorphism", Lesson 63 "Inheritance", in the first note is stated: "The idea of inheritance implements the is a relationship. For example, mammal IS-A animal, dog IS-A mammal, hence dog IS-A animal as well." This reminded me of what the Greek philosopher Aristotle said more than two thousand years ago. At the end, as said Antoine-Laurent de Lavoisier: In nature nothing is created, nothing is lost, everything changes. This is valid also for C++.
24th Apr 2017, 8:21 AM
Daniele Gaito
Daniele Gaito - avatar
+ 2
Yes. Furthermore, a class is a "concept" like person, and you are one instance of the person concept, that is called an object. Also, an abstract concept (hence, class) like love cannot be instantiated, as there cannot be love in the concrete world.
23rd Apr 2017, 4:42 PM
Bebida Roja
Bebida Roja - avatar
+ 2
What is this?
23rd Apr 2017, 7:15 PM
Manual
Manual - avatar