Lua newbie, trying to figure out how to use middleclass library for OOP
main.lua:
Person.lua:
module(…, package.seeall)require’middleclass’
Person = class(‘Person’);
function Pe
Lua newbie, trying to figure out how to use middleclass library for OOP
main.lua:
Person.lua:
module(…, package.seeall)require’middleclass’
Person = class(‘Person’);
function Pe
There are some object-oriented engineering principles, which express a sentence: “A class should only know the contract of the class it uses as a parameter, or any internal contract it uses. “
<
While reading abstraction, I came across the following statement
“Abstraction only captures the details of objects related to the current perspective”
For example.
From the driver’s poi
I will use Java (or other OO language) to develop a Tic-Tac-Toe game. Now I have a picture of general design in my mind.
Categories:
Board class, With a two-dimensional integer array, 0 means
In the above image, class B inherits class A. If B inherits all methods of A, shouldn’t the arrow go from A to B? In my opinion, if the arrow is from A to B, it will make more sense.
Is there
This question seems to be repetitive, but it is not the case. I searched on Google and the bus was unable to get conceptual clarity. There are many examples of animals and cars. However, I want to
I am new to openERP and accepted an interview. Please explain the idea of different types of inheritance in openERP. I think there are 3 types in total. Please explain in a very simple way from t
Can someone give me an example of the single responsibility principle? I am trying to understand that in practice, a class has a single responsibility because I am worried that I may violate this r
I have a question about the verification method in ddd. I have read quite controversial opinions. Some people say this should be physical life, some people say it should be placed in the entity. I
When applying the single responsibility principle and looking at the reasons for class changes, how do you determine whether the reasons for the change are too detailed or not detailed enough? I