Python advanced notes

brief introduction The basic notes introduce the basic problems such as data type and file operation. If you want to know more, you can take a look at the interviewThe advanced part mainly includes object-oriented idea, exception handling, iterator, generator and coroutine object-oriented Python has been an object-oriented language since ...

Posted by Teaky on Fri, 04 Mar 2022 11:32:25 +0100

001 difference between object-oriented and process oriented encapsulation inheritance polymorphism

1, What is object-oriented The idea of object-oriented (OO) is very important for software development. Its concept and application have even gone beyond program design and software development, and extended to fields such as database system, interactive interface, application structure, application platform, distributed system, network manage ...

Posted by discomatt on Fri, 04 Mar 2022 05:10:34 +0100

Dynamic binding of FP-15 messages

Structure 15 dynamic binding of messages Message polymorphism Message polymorphism is reflected in that the same message can be sent to different types of objects, so it will get different interpretations. For two classes with public inheritance relationship, one message can be sent to the base class object or to the derived class object. If ...

Posted by Edd on Thu, 03 Mar 2022 23:18:07 +0100

Object oriented - creation and constructor of classes and objects

Process oriented & object oriented Process oriented thought The steps are clear and simple. What to do in the first step and what to do in the second stepFacing the process, it is suitable to deal with some relatively simple problems Object oriented thought Birds of a feather flock together in a classified thinking mode. When thinkin ...

Posted by eternalprophet on Sat, 26 Feb 2022 08:23:03 +0100

System Verilog - Fundamentals of object-oriented programming

1, Overview of classes Handle (spatial pointer) Object (storage space) Transaction t1, t2;//Declare handle t1, t2 t1 = new();//Instantiate the object and assign its handle to t1 t2 = t1;//Assign the value of t1 to t2, that is, t1 and t2 point to the same object t1 = new();//Instantiate the second object and give its handle to t1 //At thi ...

Posted by Trizen on Fri, 18 Feb 2022 20:03:47 +0100

Java note IO stream

1, Use of File class 1. Use of file class Use of File class① An object of the File class that represents a File or a File directory (commonly known as a folder)② The File class is declared in Java Under IO package ③ The File class involves the creation, deletion, renaming, modification time, File size and other methods of files or Fi ...

Posted by hnxuying on Thu, 17 Feb 2022 16:08:03 +0100

I won't get off work until I finish this article on Java basics

TIP This article is included in< Introduction · YuQue >For more in-depth articles, please go to< Introduction · YuQue> . data type There are eight basic data types in the Java language: boolean/1byte/8char/16short/16int/32float/32long/64double/64 The eight basic data types are divided into four categories: ...

Posted by lisa71283 on Thu, 17 Feb 2022 13:41:46 +0100

Learning notes of javascript advanced programming | 8.2 create object

follow [front end Xiaoao] , read more original technical articles create object Create a single Object: Object constructor and Object literalDisadvantages: using one interface to create many objects produces a lot of duplicate code Relevant code → Factory mode Create a specific interface according to a specific object creation proce ...

Posted by purencool on Thu, 17 Feb 2022 08:28:28 +0100

FP-21 functional programming

Lecture 21 functional programming imperative programming Procedural and object-oriented programming belong to the imperative programming paradigm "How to do" needs to be described in detail, including operation steps and state changes. They are consistent with von Neumann architecture. They are widely used programming paradigms a ...

Posted by lexx on Tue, 08 Feb 2022 10:54:54 +0100

A little thing about the state machine (FSM SMR DFSM)

Finite State MachineFinite state machine (English: finite state machine, abbreviation: FSM), also known as finite state automaton (English: finite state automaton, abbreviation: FSA), abbreviated as state machine, is a mathematical calculation model that represents finite states, transitions and actions between these states- WikipediaElements o ...

Posted by pspeakman on Wed, 02 Feb 2022 15:52:29 +0100