A summary of learning about C#1~3

Source: Internet
Author: User

164173423 Wang Jie GitHub address

Https://github.com/wangjie97

Summary of learning Content

Learn some basic knowledge of C #, understand the Web page production, form programs, console programs and other simple implementation of the program. In the learning process, it is found that the C # language concept is very strong, need to write code practice to infiltrate understanding. C # language is similar to other languages but has its own distinctive features, especially in the case of inheritance, C + + can be multiple inheritance, and C # can only be single-inheritance, implementation of multiple inheritance to use the interface to achieve.

Problems in learning and the process of solving them
    • Question 1: In an ATM program, you want to implement a distinction between a credit account and a regular account using a single instance of accounts.
    • Issue 1 Solution: Forced type conversions during modification are not advisable to differentiate between credit accounts and ordinary accounts, so an additional Xyaccount instance is added to represent the credit account.

    • Issue 2: When using the Xyaccount object, it is found that its accessibility is inconsistent with the account object.
    • Problem 2 Solution: With the help of the teacher found that its accessibility is private, before the class name is marked with the modifier public, making its accessibility consistent.

      Learning outcomes

Code Submission Record

Mission Results
File is missing after resetting your computer

Sentiment

I think learning programming language, the most important thing is to learn something to be considered to be learned, although C # and other languages are fundamentally no difference, but its details are not the same, the C # language in the concept of some things to classify, For example, it will automatically compile the code we write to be more complete, which is not in any other language. In contrast to C + +, the language of C # is leaner and more operational.

Study Time statistics
    • Planned study time: 20 hours
    • Actual learning time: 18 hours
References that you have read
    • Inheritance of C #

A summary of learning about C#1~3

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.