Java basic object oriented (class and object concept, encapsulation, inheritance, polymorphism)

Life angle object oriented: find the right person to do the right thing Process oriented from the perspective of life: personal experience, self-reliance Classes and objects classobjectComputerMy mechanical revolutionAutomobile1949 red flaghuman beingsJobs, Bill Gates, Ma Huateng Class: a generUTF-8...

Posted by fizix on Fri, 14 May 2021 05:24:56 +0930

Object oriented programming 01

catalogue 1, Bag 2, Succession 3, protected keyword 4, super keyword 5, Polymorphism 1. Upward transformation 2. Downward transformation 3. Dynamic binding 4. Polymorphism 1, Bag 1. Package is a way to organize classes The main purpose of using packages is to ensure the uniqueness of classes NoUTF-8...

Posted by genetheblue on Sun, 23 May 2021 06:35:30 +0930

Grade C ranking based on process thinking#

Tip: after writing the article, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface Tip: process oriented, object-oriented, I believe many people who just learn programming have heard these two words. There are so many examUTF-8...

Posted by glima on Fri, 11 Jun 2021 04:54:33 +0930

C + + object oriented review

Due to the recent use of java more, so a simple system review of C + + object-oriented knowledge 1, Constructors and destructors The two are put together because they have something in common: ① In the class, it is the same as the class name (ps: before the destructor name, there is a ~, which UTF-8...

Posted by adamgram on Mon, 14 Jun 2021 04:00:48 +0930

Python Learning Notes--6.Python Object Oriented Advanced Features, Decorator Implementation Single Case Mode

Preface In this chapter, we will focus on several advanced properties that are frequently encountered in python object-oriented programming. Includes class and instance properties, class and static methods, property class properties, new and init methods, and implementation of singleton patterUTF-8...

Posted by eneyas on Sun, 20 Jun 2021 05:54:36 +0930

Java object oriented foundation -- class and object

Classes and objects 1. What are objects and classes All things are objects, and all things that exist objectively are objects Class is the abstraction of a kind of things with common properties and behaviors in real life Class features: Class is the data type of an objectA class is a collectionUTF-8...

Posted by akumakeenta on Tue, 13 Jul 2021 08:15:20 +0930

day1:kotlin Basic Grammar Learning

kotlin Basic Grammar Learning In order to distinguish java from kotlin, I made some notes by learning some of my own ideas about kotlin written in the third edition of the first line of code by GUO Lin. Introduction to kotlin language Similar to java, a JVM-based virtual machine language. Java UTF-8...

Posted by falcons on Fri, 16 Jul 2021 02:00:14 +0930

The construction and comparison of string

How to construct a string 1. String definition According to the API, the String class is located in java.lang.String Similarly, the API says that the literal values of all strings in java programs (such as "ABC") are implemented as instances of this class 2. Character string The content of the UTF-8...

Posted by clint on Fri, 16 Jul 2021 06:09:40 +0930

Interface, the relationship between class and interface, the difference between interface and abstract class

Interface 1 concept of interface Like the abstract classes we have learned before, interface is also an abstract type in Java. The content of interface is a function formed by abstraction and needs to be realized. Interface is more like a rule and a set of standards 2 interface format 3 interfUTF-8...

Posted by jllydgnt on Sun, 18 Jul 2021 04:50:08 +0930

Summary of knowledge points of object oriented programming

1, This keyword this function: Represents the current object itselfTo be precise, this represents a reference to the current object this: is used in the normal method Formal parameters that distinguish class member properties from methodsCall other methods of the current object (can be omittedUTF-8...

Posted by knobby2k on Wed, 21 Jul 2021 06:39:37 +0930