. NET Basics Review

Source: Internet
Author: User

Although a recent interview with a company, there are two choices, but the study can not be left behind. In fact, I also believe in their own. That is a little bit of satisfaction, but also know that they are really far away, the expected salary distance my goal is still a big cut, although the general undergraduate graduate salary is not very high. But I still want my life to be a little better. Maybe it's a little too material. Well, it's time to talk about your study. 1

    • Packaging

1: The reason for the encapsulation is to reduce the redundancy of the code the first time you hear this is to tell the method to encapsulate, and then call directly. The ability to implement a whole bunch of responsible code is called by encapsulating it as an interface or class.

    • Inherited

1: The first reason for inheritance is also to reduce redundant code

2: The second reason is to associate a class with a class and then lay the groundwork for polymorphism

    1. Characteristics

Single-Sex

Transitivity

Richter conversion principle: 1: Subclass can be assigned to parent class

2: If the parent object is loaded with a subclass object, you can convert the parent class to the corresponding child class object

---> Keywords

1:is return BOOL Type

2:as returns the object if the conversion succeeds, otherwise null

    • Polymorphic

---> Virtual methods
Virtual override (Override)
---> Abstract classes
Abstract override (Override)
---> Interfaces
Interface

. NET Basics Review

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.