Why Linux founder is not optimistic about C ++

Source: Internet
Author: User
Why is Linux founder not optimistic about C ++-general Linux technology-Linux programming and kernel information? The following is a detailed description. The reason is that C ++ has three main characteristics of object-oriented, which are also the most important of object-oriented: encapsulation, inheritance, and polymorphism.

In dialectical materialism, the strongest place in C ++ is also the weakest place in C ++.

1: The Key is encapsulated. How does the program control all variables and functions? The flexibility of C is completely lost!

2: C ++ prohibits full access to the physical memory, but C is not limited, so it is difficult for you to use C ++ to write the operating system?

3: You can inherit the classes written by others. I don't think they are so brilliant. You still "know it, but you don't know it !" If you do not look at the class definition, you do not know the design ideas of experts. How much can you improve?

I reiterate that C ++ is a very good language. It has its own strengths and weaknesses with C. It is recommended that you learn it and abandon C completely in the C ++ program.

I reiterate that the position of the Linux founder does not represent my position. I think C and C ++ should not be less, and Java is also good, but Java should not be compared with its Uncle C.
Related Article

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.