Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: OOP

OOP – Lua – Try calling method ‘new’ (zero value)

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

October 5, 2021By Simo Lua call, lua, method, New, OOP, try, zero valueLeave a Comment

OOP – package principle

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. “

<

October 3, 2021By Simo Software Design OOP, package, principleLeave a Comment

OOP – object-oriented design principle abstraction

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

October 3, 2021By Simo Software Design Abstract, design, object-oriented, OOP, principleLeave a Comment

OOP – object-oriented design problem

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

October 3, 2021By Simo Software Design design, object-oriented, OOP, problemLeave a Comment

OOP – UML inheritance – Why is the arrow direction from subclass to the parent class?

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

October 3, 2021By Simo Software Design arrows, classes, direction, inheritance, OOP, parents, subclasses, UML, whyLeave a Comment

OOP – When to support the inheritance of a combination

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

October 3, 2021By Simo Software Design combination, inheritance, OOP, pair, support, whenLeave a Comment

Inheritance in OOP – Openerp (ODOO)

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

October 3, 2021By Simo Software Design inheritance, Odoo, OOP, OpenERPLeave a Comment

OOP – What is the example of a single responsibility?

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

September 30, 2021By Simo Design Pattern example, OOP, principle, responsibility, single, whatLeave a Comment

Verification method in OOP – DDD

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

September 30, 2021By Simo Design Pattern DDD, Medium, method, OOP, verificationLeave a Comment

OOP – Single Responsibility Principle: Change the Causes of Particle Size

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

September 30, 2021By Simo Design Pattern change, OOP, particle size, principles, reasons, responsibility, singleLeave a Comment
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress