A joke says: How many steps does it take to put an elephant into a refrigerator?
One, open the refrigerator
Two, put the elephant in
Three, close the refrigerator
In the same vein, how many steps does it take to put a lion in the freezer?
One, open the refrigerator
Two, put the Lions in
Three, close the
Object oriented
Process-oriented-analyze the steps required to solve the problem and then step through it
Object-oriented-decomposing the things that make up a problem into objects
An object is used to describe the behavior of something in a problem-solving process.
Object-oriented three major features: encapsulation, inheritance, polymorphism
Object-oriented program is more reusable, flexible and extensible
1 usingSystem;2 namespaceObjectdemo3 {4 //1. Create a
1. Process-oriented-----> Object orientedProcess oriented: It is the process of accomplishing this thing, emphasizing the action of accomplishing it.Put the elephant in the freezer1. Open the refrigerator door2. Tuck in the Elephant and kiss the elephant's butt.3. Close the refrigerator doorZhang San skinny little Dick SilkZhang San on the small bench to open the refrig
There are two kinds of common high-level languages: object-oriented and process-oriented, the typical C, it is a structured language, simply speaking, is to solve a problem, is divided into a number of successive relations of the steps, coherent up can be resolved. For example, put the elephant into the refrigerator program, the process-oriented, the first step: Open the refrigerator; Step two: Put the elep
5. Object-oriented in Java (1) notes, java object-oriented
1. Object-oriented VS process-oriented
1/* 2 * understanding 1: people open doors 3 * process-oriented: people open doors 4 * object-oriented: 5 * People {6 * open () {7 * doors. Open (); 8 *} 9 *} 10 * door {11 * open () {12 *} 13 *} 14*15 * understanding 2: people put elephants in the refrigerator 16 * oriented process: 17*1. open the refrigerator
Do you still remember the joke: Put the elephant in the refrigerator in a few steps? This is not just a joke, but also a joke worth analyzing. If you want to put an apple in the refrigerator, it will not be ridiculous, but changing to an elephant will attract our interest and attention. Why? We are no longer familiar with Bim, but if we think about Bim from the perspective of building, will we have a new un
1 PackageCom.atguigu.java;2 /*3 Understanding 1: People open the door4 process oriented: people open doors5 Object-oriented:6 Person {7 Open (door) {8 door. Open ();9 }Ten } One A Door { - Open () { - } the } - */ - /*Understanding Two: People pack elephants in refrigerators - * Process oriented: 1) Open the refrigerator 2) put the elephant in. 3) Close the refrigerator door + * Object oriente
The 7th chapter of the design pattern-appearance mode (Java implementation) "Fish brother, know how to put the elephant into the refrigerator?" (The author presses: This simple question still wants to test me, early hundreds of years.) It takes three steps to put the elephant into the refrigerator: the first step is to open the refrigerator door; the second step
When the refrigerator temperature drops to a set temperature, general and put the refrigerator location environment temperature, the amount of food, set the temperature level has a certain relationship, under normal circumstances, such as the refrigerator inside the food, temperature using the default temperature (direct Cold
: pour corn flour (or rich and strong powder) into half a cup of cool milk and mix well, the rest of the milk is heated with sugar, add the adjusted corn flour without stopping stirring, cooking for 10 seconds, the milk becomes thick and then off the fire, stir for a moment. After cooling, add fruit sauce and fresh cream to the refrigerator and compress them to the refrigerator.Features: Unique exotic atmosphere.
5. homemade ice creamMain material: li
At this time last year, the impulse to write a "brief introduction of object-oriented technology", first of all it seems to think: what is written and what? (PS: Although the blog is still not very well written now) but, in the Java study once again had to object-oriented, so, on a "talk about object-oriented" as a new Year's appetizer.Object-oriented is a kind of thought relative to process-oriented.Different from the process-oriented:Process-oriented is a function-based, the completion of a va
Label:This procedure involves the following aspects of knowledge: 1.python links MySQL Database: http://www.cnblogs.com/miranda-tang/p/5523431.html 2. crawl Chinese website and various garbled processing : http://www.cnblogs.com/miranda-tang/p/5566358.html 3.BeautifulSoup Use 4. the original Web page data information is not all in a dictionary, the non-existent field is set to empty Detailed code: #!/usr/bin/python#-*-Encoding:utf-8-*-‘‘‘Ideas:1.data on the
Label:... Service input Data sample type get Eve Catalog responsibilityOne: Job Title: Comprehensive Exercises (ii) II: Topic Requirements:1, the creation of the database Cpxs, saved in the E-packing directory to their own school number + first letter (Arabic numerals + capital letters) to create a folder, the initial size of 5MB, the largest 20MB, in 10% ways to grow, log files in the same folder, the initial size of 2MB, the maximum 5MB, grow in 1MB mode;2, CREATE table CP,CPBH primary key, 8
1. Non-water, plush toys cleverly cleanMethod: Put a half bowl of Large salt (I .e. coarse salt, sold in supermarkets, 2 yuan a bag) and dirty hairVelvet toysPut a plastic bag, fasten the mouth, and shake dozens of times. The salt has become gray-black due to the adsorption of dirt.Advantages: it can avoid toy plush knots caused by water washing. At the same time, salt can also be disinfected. It is fast and time-saving.Principle: The adsorption of salt, I .e., positive and negative ions of sodi
. NET basics step by step: [object-oriented objects and classes],. net Object-Oriented
Objects and Classes
This article briefly introduces the object-oriented knowledge point:
What is an object,Buddha said: A flower a world, a wood a float, a grass a heaven, a leaf a like, a sand a joy, a clean soil, a smile a dust, a read a quiet. Visible"All objects".
Object: the entity that contains data and operations.
Process-oriented: it focuses on the process of completing this task and the action of comp
Object-oriented is relative to process-oriented, object-oriented and process-oriented is a kind of thought.The process-oriented approach is based on a functional perspective, emphasizing each functional step, representing the language: C language.Object-oriented is an object- based approach to the problem, emphasizing the object, called by the object function method, representing the language: Java, C + +, C #.Give an example to compareExample: Put an elephant in a
================================================================================3. Process-oriented and object-oriented:C language is a process-oriented language;OC language is an object-oriented language;Process oriented: what processes (steps) are required to solve a problem;Object oriented: What objects are needed to solve a problem;3.1. Process-oriented and object-oriented3.1.1 Process-oriented programming"Process-oriented language"1. Omit the subject; (Subject is CPU)2, process-oriented = d
Joke-three ghosts
One day, three ghosts met God while shopping! They said to God, they all died badly and hoped to bring them to heaven! God says helplessly that there are too many households in heaven. But now there is another place! Let's talk about it. Let's see who died the worst, and let it go to heaven!So the first ghost began to say ...... I was a cleaner during my lifetime. Hard work! From busy to late! One day, I was cleaning glass outside a building! It's the kind of dange
1. No water, plush
Toys
Smart cleaning
Method: Put a half bowl of big salt (that is, coarse salt, sold in a supermarket, 2 yuan a bag) and a dirty plush toy into a plastic bag, fasten the mouth, shake dozens of times. the salt has become gray-black due to the adsorption of dirt.
Advantages: it can avoid toy plush knots caused by water washing. At the same time, salt can also be disinfected. It is fast and time-saving.
Principle: The adsorption of salt, I .e., positive and negative i
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.