Day_10this, static, encapsulated

1.1 javaBean JavaBean: JavaBean is a public Java class, but there are at least three conditions to satisfy for editing tool recognition: there is a public default constructor (such as a parameterless constructor,)Attributes are accessed using the public get, set method, that is, set to private, and get, which corresponds to the size of the p ...

Posted on Tue, 12 Oct 2021 12:53:41 -0400 by bobby4

How does DCI architecture solve the shortcomings of DDD tactical modeling?

Absrtact: the DCI architecture is summarized into one sentence: domain objects play different roles in different contexts, and the roles complete the specific business logic through interaction. This article is shared from Huawei cloud community< Implement DCI architecture >, author: yuan Runzi. preface In the concept of object-orient ...

Posted on Sun, 10 Oct 2021 22:11:57 -0400 by nelustr

[c++] cpp object type and this pointer, friend

4.3 cpp object model and this pointer 4.3.1 Member variables and member functions are stored separately In cpp, member variables and member functions within a class are stored separately Only nonstatic member variables are on objects of a class #include <bits/stdc++.h> using namespace std; class Person { public: int mA = 0;//Non-stat ...

Posted on Sat, 09 Oct 2021 14:46:00 -0400 by cirko

Java Object-Oriented Learning Notes

constructor Parametric constructs: once a parametric construct is defined, a parametric construct must display the definition Constructor: Same as class nameno return value Effect: new is essentially calling a construction methodInitialize the value of the object Encapsulation (property private get/set) Enhance program security and ...

Posted on Sat, 25 Sep 2021 13:20:53 -0400 by audiodef