[Water like smoke] I understand "class"

xiaoxiao2021-03-06  89

[Water like smoke] I understand "class"

Original post: http://community.9cbs.net/expert/topic/3450/3450025.xml? Temp = .9761316

Because some people say it is misleading, but it is confused, so I didn't continue to write.

Just why is it wrong, no one clearly refers out, so it is sticked to the criticism.

If you have value, you can continue to write.

Opening: Today, Oh, Yesterday, someone asked this question, I think it is still a bit necessary, may be a bit inspiring for some people, and will also be counterproductive, why, then see the declaration, solemn .

Disclaimer: I am really the use of NET, I don't know the importance of the system, the concept is also the importance of the definition concept. It is the basic skill of the peak. It is not used, the memory is poor, so I have to pass it, I will go to see it, then I will go, so, this is not good, the definition concept is not clear, talk about other things, not to say is How to be bad. This is not nonsense. Ok, as long as you know, don't marry me, smile, okay, right, old genius knows it or not. In short, don't believe it, at least don't always believe it, you have to look at it with a critical eye.

Plan: Say clear this question, or all of my understanding, it is certainly not able to do tonight. Nowadays, I don't know if I don't know if I don't know. So a paragraph said, I can't do it in the section, because I haven't worked for a long time, and I haven't worry about these understandings, so I can only have to have passed. . It is estimated that it is necessary to use a week, maybe it's not a week, why, because it is only seven days for a week, if there is no writing in five days, it is of course not finished.

Measures: Say is to understand, statement, I can't talk about concept, I just talk about my understanding. How do you say it, or use the fact that it is the fact that people, students

with

Teacher, how to make a class.

First, things and classes

Ha, I used "one", I don't say that I have a chapter, just to limit my current idea to this range, don't think about it, just this.

Everything is class. The ancients said, (I don't know if I said no, the following is all chaos, I said that people can't remember anything), Bodhi has no trees, the mirror is also non-Taiwan, the way is the world. The truth, hey, NET said, all things are all classes. How is this contradictory, is our old ancestors really (said, all my understanding, I don't know if Net said that all things are all categories, I really didn't verify, of course, I am also our old ancestors Say that sentence? I want to go, still there should be no mistake, because, our old ancestors only say the last state, the class, until the end, not all Dipose, that is not a tight. So not contradictory. Our current knowledge is infused, and the substance can eventually consist of these small elements such as Quark. I want to think about this, I want to find this base class! Material base class! Net is the smartest, no matter how the world changes, its base class is Object, is a matter, how do you say it is correct. Why do you want to find this base class, it's too big to use, because you only need to inherit it, add some promises, is a new base class, then add something, and it is. . . , Ha, that is, it can rebuild a new world.恁 How do you think of it, master this base class, ha, don't make a fortune, because the world is yours, really belonging to you. The current application is, the most extensive, is the genetic engineering in the biocontrol, clone? Anti-gene? Old days, this is the benefits of "Base", you can see it clear, is "base", not "chicken". Net, is it more great? This is true, it will be built with an object, what you want to build, what can be built. It has been done. Ok, talk about this, rest, and continue tomorrow. Second, the base class

Talk about this in front of you, talk about this.

It is really a headache to find the most primitive base class. According to the truth, the base class is also inherited from its base class, but the most primitive? This is the world's own issue. Since it feels that this is not included, nor is it attached to any material. If it is with the characteristics, it will definitely have this characteristic, which is the blood. Now I have passed the human gene to identify whether you are at the scene, whether to participate in this case, the judge is sentenced to evidence, that is because those characteristics will only have you, your blood, hair, etc. You have a special primitive with this characteristic. Old ancestors, Ha, (I think China's ancestors really make me pride), the old ancestors are still especially homogenous, everything is true, things are from there, the world is empty, this is chaos, this is chaos, this is no The order, this is empty, but I really don't know what power is bullied. Is it powerful? That's a big very much. Black hole, for black holes, you feel that it doesn't exist, if you think it exists, it is impossible, because you have already rolled into the head, it has already reached another world, but it doesn't feel its existence. However, you can say that there is no power in the black hole. Some people say that the black hole has made this base, really feel very reasonable. In this way, the base is yes, the base class of the primitive is also there, but it is in a virtual way, and the base of the primary depends on another world power. Ha, hit! Object! In addition to admire, only more admire. It has no characteristics, but it also has any features. Object is no BaseType, but there are other sure. I really don't know how Net is how to get this primitive, in addition to admire, or admire. Rest awhile. Third, procedures and classes

Object-oriented programming is to look at the object from the beginning to end. Your program is an object, that is, a class, but there are also many classes in this class. It is a combination of classes. The combination is the so-called package, the final finished product is class: Class, Class, Class, Package: Package, Package , Package. Ok, I am going to work, everyone is happy!

In addition to the primitive, we can create new things, we can transform the world!

Here said how to build a category.

Fourth, universality and base class

As the base class, it is a common collection of all its inheritance class. As an object (example of the base class), it is the attributes and behaviors commonred by all homologous things. For example, the dog, the wolf is a dog animal, and they have characteristics, but there are also the same point, that is, the properties and behaviors of canine animals, the prototype of canine animals is the base class of dogs and wolves.

Do a good job in the base class, we must be good at observing things in normal life, diligent analysis, out of common things, and discover its rules. Common things are the properties and events of the base class, and the rules of operation are the basic class, which is the universality of things. Ha, it seems that I am selling dialectics.

V. Specialty and inheritance of things

We have a systematic understanding of the prototype of a specific thing, so it is better. As long as we only care about the more than the dog and the wolf and the panda, we can find that there is only its own attributes and behaviors in the canine, then we inherit the prototype of the dog (ie, the dog animal) Adding these attributes and behaviors (specialty of things), built a dog class.

As long as you like, you can instantiate the dog class when you knock on the door, and ensure that there is a dog to protect you. Of course, this is just an ordinary dog, making your ideal dog, unbelievable power, it seems that you have to inherit this dog class to create a super dog class and instantiate. Let's talk about encapsulation, pay attention, is packaged instead of packaging.

6. Closed and classic packaging of things

Why we wear clothes because some places in our body do not want to expose it, or to protect the damage of certain places from survival. We have to live in the house, the house is already a mud (what mud is good) bucket (in fact, there is no different small bag with the wilderness, of course, there is still a little bit, there is still a short-line), what to add, What do you, explain what it is, explains the need to be closed. The old year should be closed, and you must be self-reliant, it is the necessary background.

This part may be longer, take a break, look at the sky, and say it.

Excellence: Learn philosophy, benefit for life. Lao Mao is the greatest in his era, because his philosophical theory is strong, forward-looking, and "armed" has a large number of people. We can't see Liu Shaoqi's specific achievements, but he became the President of the State, I think the biggest reason is his theoretical level, and his theoretical work in the party is not (I am not a party). Lao Mao said, Genghis Khan, only to recognize the bow of the big carving, that is just because there is no cultural heritage, so he does not think about it. Ancient and modern China and foreign countries, people who are most popular in the future people are those philosophers, theoretists, cultural horses, and scientists. (Personal concept, not arguing, ha)

Public, Private, Protect, Friend, Protect Friend, Shadows

Disclaimer: Understanding the above modes of modifiers, the following understandings may be wrong, or expressive.

Some of the characteristics of things are exposed, some are closed, so the elements of the class (the entities are in MSDN, pay attention, is entity, rather than example, should be class, class instance, attribute, method, interface, commission, The structure, etc., I don't go back), it should be somewhat open, some are packaged, this is to say that the class element should be packaged. The closure and exposure of things can be worn by the body, the country does not open the customs to solve, in the class, with these modified words to identify. One of the following, the key mistakes are also coming, you can argue, you can also criticize.

Public

For people, the eyes are public, exposed, anyone can see, whether it is loved ones, friends, foreigners, and even your dog; you can see it in any occasion, you don't have to say it in your room. Bathroom, road, etc.

Class, it can be seen by the Element of public modified, and it can be used, or it is useful; in any class, itself, the subclass is not used, whether any item, even project, as long as it is referenced. It can also be seen and can be used.

In short, it is the sun, the generals, everything is to be enjoyed, anytime, anywhere, as long as you are interested, you can use it.

Why do I just say that my eyes don't say their face, I'm so hard to see the face of Pakistan Kuwaiti (TV on TV). Private

For people, your spirit is private, really belonging to your own things, you don't tell high technology such as talk or sensors (I don't know if there is still no, the pillar is just analyzing the pulse of the nerve current, true I don't know if there is anything that accept people's thoughts, the science fiction is seen, and if others are conveyed out, others can't touch your mind, whether it is a home or a bathroom and road, of course, thinking is Your own, your part of your body can contact it and interact.

For classes, of course, it is only a role in the elements in the class, or is just a transfer station that is internal information flow, or to record some states. Externally want to understand it, including its subclasses, it depends on whether this class is available to the outside. Even if the externally can get some information of this element, it is not comprehensive, and it is not enough to affirm that this information is true. In fact, I don't know if this element does not exist at all.

For the time being, I have to eat, I have to work overtime at night. Say these understandings involving the concept of definition, is my weakness, really a little headache.

Take the time (I call it) again.

The universal contact of things and the necessity of public public.

Things are commonly linked, purely isolated things do not exist, in addition to producing primary substances (of course, it also exists, but it is non-matter to us, non-substances, there is no common thing, can't Things to communicate. Ha, may be Hu Wei). The national door can not completely shut down, even if it is closed, it may be half-masked, or like your home, although it may be closed at night, but daytime is always open. Why didn't I let go of Hong Kong? If people run, I will leave a empty door, but the old hair is not allowed to liberate the army of the army, the Luohu Bridge, why, Hong Kong is the most ideal for the establishment of the new China Transfer station. Tiger door, it is so close to the mainland is one or two kilometers, which is far away from Taiwan Island. Jiang's old man should all give up. Old Mao also should not be liberated, to pass the Humen, through the mutual guns to transfer information. The liberation of the tiger door, completely isolated Taiwan Island, Lao Jiang even did not die, his team, those who will jump wall (just a metaphor, there is no metaphor here, I love Taiwan Island and Taiwanese people), possible The result was independently, and the national stability was still unable to fight the so-called supporters behind the island. Of course, I didn't want to see it. Therefore, the Humen is an information exchange station in the mainland and Taiwan Island. . It is ridiculous that information interoperability is carried out in the form of two parties.

The class is also, the class of all private is there is no value, there will always be or at least one exit, even if there is no right gate, there will be a dark door, or the back door, the dark door or the back door is back. The protect, Friend is also one.

Necessity of things and private necessity

It is impossible to open the national or your home or your home. Anything also has an isolated side. Therefore, there is also a need for private. Built a class, how to determine one element should not private, then look at itself in the class and other elements, the more close, the stronger the private; if this element is a class of features The recorder of the state, this state is born, it has its own specific law, and its private necessity is also very strong. I didn't do my hair, and I said. Tomorrow, oh, today, today's daytime and evening (now is a child, not at night, now, only knowing that the original child is more than the day, where you can't write, so there is also necessary Said two sentences.

Continue to talk about Private, now look from the perspective of the quantity change and quality.

Some people may see, I am now writing NET classes, from the theory to see, Ha, high! (Sometimes I praised myself). As for some examples of concern, it is the scope of practice, and is the content of the second part. One thing, should use it, or act on it, if you have a good effect, if you have condition, first see what the theory of this thing, then guide yourself better root, then it is the right path Although the handsome is slow, once the hand is moving, it must be more exciting than the blind people, and the cow is not more than 庖庖, at least the gauge will not be too outrageous.

Private is so important, I have to 哆 哆. The reason why the class is this class, and its important feature is inseparable from private. Especially important attributes, it is unrelated to unrelated elements to move manual feet. Once this property value changes to a certain extent, this class is not unrecognizable, and it is deteriorated. So use private to protect it (of course, you can't start, you can use the Protect, Friend authorized a small range of other classes to reference or function, it is to say later). If you are not understood, I will give an example to verify how the amount changes. A stick, long stick, I cut a small paragraph, or a stick, then cut, or then cut, or then cut. . . Is it a stick, you can't affirm it, when the remaining "length" is less than the "width" in the original direction, it is not the original stick, unless you come to a ninety degree turn, it Will be a stick, just this stick is not right. The role of Private is here, protecting the essence, and forever. Of course, the inherent method of the class is also for internal use, which is not available for external users, because it is not related to use it, it is possible to affect other values, class feature values, may cause this class non-class.

Said above, I remembered the issue of freedom and human rights. Can the speech come casually, can human rights do you want? impossible! A class has private, a country, a country, must also be constrained, no government, absolute freedom, then it is not home, the country is not the country. The United States always pointers China to say this, I see, the world's most private private, is definitely in the United States. Cutting technology, senior talent, advance theory, is definitely private, which has a public server, even Protect, Friend is very small. Hey, it is a bit gas, I'm broken, sleep. good night.

Yes, there may be shadow, ha, sigh, all the best, work hard, in the process of doing yourself, people don't refer to the three four, then it is, one day, one day, our private will also develop rich . Relieved.

I am also the first time to examine the class, understand the class, how to think, didn't think so before. But it seems that the organization of the class, the organization, class element is characterized by the characteristics of the class, and the image is better than the retrieve concept. How to use it in the future, why use it, it has a point beforehand.

It's not good, don't be embarrassed. I absolutely don't sell what I mean, in fact, this kind of saying that my skill is also exposed to everyone, there is nothing benefit to me. I really have to sell, I have to finish the book, and I will never think about the truth of the edge. Some people say that it is water stickers, this is not agreeable, I said those, and help me to confirm the original meaning of understanding those concepts. To put it bluntly, in addition to the paper, in addition to the one who wrote "Love Letter", this is my longest article (of course, the company's summary Not surrounded).

Terp of things and protect

In the dialectic, there is no intimacy, it seems that there is no, or there will be another noun to replace. I don't care here, I will press my own understanding (my understanding is not only for the class ", but also all" knowledge "now used." In biology, outline, objective, subject, and species is a close chain, outlines, and the back inheritance is a new base. For us, it is the relative relationship. There are some characteristics, in this chain, it has its own specialty, is the key parameters of the essence of this chain in the outside. In the class, these features are defined, the above is said, should be identified with private. However, this feature is that the object of this chain has, after inheriting the base class of the front, it should have this feature, if the base class of the front, make this element into Private, then It is not possible to reflect or at least unreasonable reflect the relationship of this chain, and when the base class gets the inherited information, this attribute is not good to communicate between the two (here seeming to say " It's a little deeper, I can only express this. In order to solve this problem, NET provides Protect to make the base class with it to replace the private identity key element. This element is PUBLIC, and the other class or the outer chain of non-inherited it is, this element It is private.

For example, the mole in your chest (if something is genetically, but just starting from you), your child is seeing (and they also), others can't see it. I have never used the statement of the child, that is, there is a problem here. Originally, you himself inherited the father's class. When you arrived, you have the mole, talented Protect, but this category is not seen. How did Dad and my mother can't see the truth of the bulls in their children, in love, so I don't have to use the parent class class, just say base classes and classes. Landscent and Friend

The longitudinal connection of things has a score of intimate (above), and the horizontal connection of things also has a closeness of intimacy, which is the geographicality of things. Some properties and behaviors will be granted to this area, which is given, not if it is not given. For example, my country's special economic zone is that there is a preferential policy (capital, financial, human, taxation, etc.), not, don't give it. For example, WTO, European Community, Asia Pacific, flora, etc., there is a special trade rules. Of course, there are any military alliances, a lot. For example, the room, the road, the bathhouse, the room, the room and the bathhouse belong to the same region, and in his own room, it is not a bathroom, it is also a place where it is a place. Seeing that 痣, of course, others should not see it. That is to say, the geographical characteristics of things are also common.

In classes, these preferential policies or special properties and behaviors use Friend to identify the relevant elements. The geographical domain it exists is the assembly. The classes included in the assembly can be used, and other assemblies are not seen.

Protect Friend

This is a good understanding, that is, this attribute or behavior can be authorized according to the intimacy, or may be authorized according to geographicality. PUBLIC is applicable to any intimacy, any geographical area, which is not applicable to any intimacy and any region.

Ha, I can finally be a mouthful.

Divicity and shadows

This is not a category mentioned above, staying below. However, it reflects the deceptiveness of things.

Going to work, hit. Happy.

转载请注明原文地址:https://www.9cbs.com/read-103758.html

New Post(0)