Object-oriented "Three-field theory"

Source: Internet
Author: User

Suddenly, we found that the three-Field Theory in logic can be interpreted using object-oriented thinking, which is easier to understand than using mathematical methods and more in line with human thinking habits.

The three-part theory can be summarized as an example: for example, 'all metals can be conductive '(big premise), 'Copper is metallic' (small premise), and 'Copper can be conductive '(conclusion ). This is called a field theory or a field theory.
In the object oriented approach, metal is an object and the method of conducting electricity is a metal object. Copper inherits the metal object, so copper also has a metal method, conductive! How about perfect?

Another one: All theists are not materialism; some are theists; so, others are not materialism.
In the object-oriented thinking, the object of a certain thinker does not inherit the object of a materialism. The object of a certain person inherits the object of a certain thinker. Therefore, the object of a certain person does not inherit the object of a materialism (typeof ("someone ")! = Typeof ("materialism") again

Come to one: all college students are young people; some athletes are college students; so some athletes are young people.
In the object-oriented thinking, the college student object inherits from the young object. The athlete object type may be equal to the college student object type (typeof ("athlete ")? = Typeof ("college student"), so the athlete object type may be equal to the young object type.

Through further thinking, I found that the so-called "three-field theory" is actually another way of expressing the rule of Object Inheritance.
The first example is that the sub-object inherits the method of the parent object.
Second, the third example is that the self-object inherits the type of the parent object, or the type of the parent object determines the type of the sub-object.

And so on, we seem to have a problem of missing attributes. inheritance can inherit attributes, so we will "CREATE" One:
All otaku users pay for paper, and some people pay for it. Here, "paper" is used to describe otaku. It is a property of Otaku (characteristics of objects)

To sum up, the so-called three-stage reasoning is actually an object-oriented thinking.
I also found that many other things are object-oriented, such as languages.

Haha, I want to express some ideas, that is, I hope you will put forward some criticism, comments, and suggestions on this "theory". I can only find my personal thoughts, discussion is the stairs to progress.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.