Introduction to java - object oriented
object-oriented
inherit
Usage scenario: if multiple similar classes have the same attributes and methods, you can extract the same attributes and methods from the parent class
Benefits: reduced code redundancy
Deep inheritance:
When creating a subclass object, will the parent class constructor be called? meeting If you create a s ...
Posted by PatriotXCountry on Sun, 02 Jan 2022 17:39:08 +0100
[Package] RosBridge -- break through the data barrier between Ros and non Ros environments #2, and implement the function ppianpak / rosbridgecpp on the C + + side
1 Overview
In the last article [Package] RosBridge -- break through the data barrier between Ros and non Ros environment In this article, I introduced how to conduct data communication between non Ros and Ros systems through RosBridge, and realized half of the communication architecture, that is, the left half of the picture. In this article, ...
Posted by west4me on Tue, 28 Dec 2021 05:49:46 +0100
New java features lambda expressions quick start
order
With the continuous development of Java language, lambda expression, a new feature provided by Java 8, has become a writing method loved by more and more developers. In order to adapt to the changes of the times, we need to learn this writing method well and apply it in normal development. We start with simple examples and go deep in ...
Posted by chatmaster on Sun, 26 Dec 2021 21:09:51 +0100
Java se -- abstract classes and interfaces
abstract class
summary
Abstract class introduction
The method in the parent class is overridden by its subclasses, and the implementation of subclasses is different. Then the method declaration and method body of the parent class only have meaning, while the method body has no meaning (because the subclass object will call its own overridden ...
Posted by markwillis82 on Sun, 26 Dec 2021 13:28:14 +0100
Quick learning 1.8 front and rear interfaces
JDK1. Before 8
1. Interface declaration format
[Access modifier ] interface Interface name [extends Parent interface 1, parent interface 2] {
Constant definition;
Method definition;
}
2. Code
/*
1.Class is a class and interface is an interface. They are concepts at the same level
2.There is no con ...
Posted by Sphynx on Sun, 19 Dec 2021 08:10:09 +0100
Be familiar with the four methods of POST data submission, and the interface test is more efficient
catalogue
preface
1, application/x-www-form-urlencoded
2, Multipart / form data
3, application/json
4, text/xml
Finally, if you want to get the above code, you can get it according to the contact information below (including Baidu online disk link and Alibaba cloud disk link).
We all know that POST is generally used to submit data to th ...
Posted by plutoplanet on Thu, 09 Dec 2021 02:06:24 +0100
Java notes - Interface
Interface
An interface is a declaration of a series of methods and a collection of method features. An interface has only method features and no method implementation. Therefore, these methods can be implemented by different classes in different places, and these implementations can have different behaviors (functions).
Why do I need an inter ...
Posted by Chafikb on Sun, 21 Nov 2021 05:58:23 +0100
Java basic syntax 69- interface
Java basic syntax 69- interface
1, Use of interfaces
Interfaces are defined using interface sIn java, interfaces and classes are parallel structuresHow to define an interface: define members in an interface
3.1 JDK7 and before: only global constants and abstract methods can be defined
Global constant: public static final, but it can b ...
Posted by aladiyat23 on Thu, 14 Oct 2021 22:23:43 +0200
Learn Go: 14. Pointer type
>>Original address
Learn what
What is a pointer?
What is a pointer type?
How to use and create pointer type variables?
How to get values from pointer variables?
How do I pass pointers?
What is a pointer
What is a memory address first? The point of popularity is that the number of data storage locations on computer is just like our ID ...
Posted by kidd1270 on Thu, 14 Oct 2021 05:13:40 +0200
How to deploy yapi yourself
preface
Recently, we need to use yapi with team members, but some interfaces are not suitable for the yapi already deployed by the company. So we have the idea of deploying a set of yapi ourselves. There are twists and turns in the middle, and finally it is built.
1. Environment
At first, I applied for a free cloud server on a cloud webs ...
Posted by BinaryStar on Fri, 24 Sep 2021 17:33:20 +0200