Tagged articles
26 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Apr 24, 2026 · Fundamentals

Java Inheritance from Scratch: Stage‑2 AI Learning Notes

This note explains Java inheritance, covering the single‑inheritance class hierarchy, a Car class example, a ChildCar subclass that adds a load field, and eight key inheritance capabilities such as member reuse, method overriding, and constructor chaining, illustrating why inheritance improves code reuse and quality.

Class HierarchyConstructorInheritance
0 likes · 7 min read
Java Inheritance from Scratch: Stage‑2 AI Learning Notes
Lisa Notes
Lisa Notes
Apr 18, 2026 · Fundamentals

Java Basics: Building a Car Class from Scratch

This learning note walks through a complete Java Car class example, explaining its instance fields (brand, color, speed, id), a static count field, a parameterized constructor that auto‑increments the count, and accessor methods that illustrate core object‑oriented concepts.

ClassConstructorJava
0 likes · 4 min read
Java Basics: Building a Car Class from Scratch
Lisa Notes
Lisa Notes
Mar 29, 2026 · Fundamentals

Java Class Definition: A Beginner’s Guide from Scratch

This tutorial walks through Java class fundamentals, covering class declarations, modifiers, member variables, methods, method overloading, and constructors with clear syntax examples and code snippets to help beginners write and understand Java classes.

ClassConstructorJava
0 likes · 8 min read
Java Class Definition: A Beginner’s Guide from Scratch
Java Architect Essentials
Java Architect Essentials
Jul 15, 2025 · Fundamentals

Avoid Constructor Pitfalls and Cut Code in Half with Builder Pattern

This article explains common constructor mistakes such as starting threads, calling overridable methods, and using too many parameters, demonstrates how the Builder pattern and default-value constructors can dramatically reduce boilerplate, improve readability and performance, and offers practical guidelines for safe constructor design.

Builder PatternCode RefactoringConstructor
0 likes · 6 min read
Avoid Constructor Pitfalls and Cut Code in Half with Builder Pattern
Liangxu Linux
Liangxu Linux
Mar 5, 2025 · Fundamentals

What Hidden Functions Does C++ Auto‑Generate for Your Classes?

This article explains the seven default special member functions that C++ automatically provides for a class—including constructors, destructors, copy/move operations and address‑of operators—showing when they are sufficient, when they can cause problems such as shallow copies or double frees, and how to implement custom versions to ensure correct resource management.

C++Constructorcopy semantics
0 likes · 17 min read
What Hidden Functions Does C++ Auto‑Generate for Your Classes?
php Courses
php Courses
Jan 2, 2025 · Backend Development

Understanding Constructors and Destructors in PHP

This article explains the purpose, syntax, and practical examples of PHP constructors (__construct) and destructors (__destruct), demonstrating how they initialize objects, manage resources, and simplify code through automatic execution during object creation and destruction.

ConstructorOOPPHP
0 likes · 8 min read
Understanding Constructors and Destructors in PHP
php Courses
php Courses
Jan 12, 2024 · Backend Development

Defining Classes and Using Constructor Property Promotion in PHP

This article explains how to define a PHP class with properties and methods, demonstrates traditional class syntax, introduces PHP 8.0 constructor property promotion for more concise initialization, shows how to set default values, and outlines the benefits of using this feature.

ConstructorPHPProperty Promotion
0 likes · 5 min read
Defining Classes and Using Constructor Property Promotion in PHP
Sohu Tech Products
Sohu Tech Products
Dec 6, 2023 · Fundamentals

Understanding JavaScript Constructors, Prototypes, Classes, and Inheritance

The article thoroughly explains JavaScript constructors, prototype chains, the this binding, and ES6 class syntax, showing how functions become constructors with new, how prototypes link objects, custom new/instanceof implementations, and various inheritance patterns—including parasitic combination inheritance realized by class extends and super.

ClassConstructorInheritance
0 likes · 22 min read
Understanding JavaScript Constructors, Prototypes, Classes, and Inheritance
IT Services Circle
IT Services Circle
Mar 17, 2022 · Fundamentals

Understanding the __init__ Constructor Method in Python

This article explains the purpose and behavior of Python's __init__ constructor method, clarifies object-oriented concepts such as classes, instances, and attributes, and provides example code illustrating how __init__ is automatically invoked during object creation to initialize instance properties.

ConstructorOOPPython
0 likes · 4 min read
Understanding the __init__ Constructor Method in Python
Sohu Tech Products
Sohu Tech Products
Feb 24, 2021 · Frontend Development

Understanding Common JavaScript Design Patterns: Constructor, Facade, Proxy, Strategy, Bridge, and State

This article explains six fundamental JavaScript design patterns—Constructor, Facade, Proxy, Strategy, Bridge, and State—illustrating their concepts, advantages, drawbacks, and providing clear code examples that demonstrate how each pattern can improve code organization, reuse, and maintainability in front‑end development.

ConstructorDesign PatternsFacade
0 likes · 23 min read
Understanding Common JavaScript Design Patterns: Constructor, Facade, Proxy, Strategy, Bridge, and State
FunTester
FunTester
Jan 4, 2021 · Backend Development

Why Groovy Enum Constructors Fail with Char Literals and How to Fix Them

The article explains a Groovy runtime initialization error caused by the language treating both double‑quoted and single‑quoted literals as Strings rather than chars, leading to a mismatched enum constructor, and provides a corrected enum definition with explicit char casting to resolve the issue.

ConstructorGroovyJava
0 likes · 6 min read
Why Groovy Enum Constructors Fail with Char Literals and How to Fix Them
Continuous Delivery 2.0
Continuous Delivery 2.0
Jul 15, 2020 · Fundamentals

When Constructors Do Too Much Work: Symptoms, Risks, and Refactoring Techniques

The article explains why having constructors perform excessive work is a design flaw, describes how to spot this problem through code symptoms, discusses its impact on testability and maintainability, and provides concrete refactoring strategies such as dependency injection, factories, and builder patterns.

Constructorcode smelldependency-injection
0 likes · 13 min read
When Constructors Do Too Much Work: Symptoms, Risks, and Refactoring Techniques
Sohu Tech Products
Sohu Tech Products
Feb 26, 2020 · Frontend Development

Comprehensive Guide to JavaScript Inheritance Types and Their Usage

This article provides a thorough overview of JavaScript inheritance mechanisms—including prototype chain, constructor stealing, combination, parasitic, and ES6 class inheritance—detailing their implementations, advantages, drawbacks, and practical usage with clear code examples and best‑practice recommendations.

ClassConstructorES5
0 likes · 12 min read
Comprehensive Guide to JavaScript Inheritance Types and Their Usage
Java Captain
Java Captain
Jul 20, 2019 · Backend Development

Performance Comparison of Java Constructors, Setters, and Builder Pattern

The article examines Java performance optimization by profiling constructor initialization, individual setter calls, and Lombok's builder pattern, showing that direct constructor usage consistently outperforms setters and builders, and provides practical coding tips for faster Java applications.

BuilderConstructorProfiling
0 likes · 4 min read
Performance Comparison of Java Constructors, Setters, and Builder Pattern
Java Captain
Java Captain
Apr 12, 2018 · Fundamentals

Java Constructors, Initialization, and Method Overloading Explained

This article explains how Java objects are initialized using explicit values, default values, and constructors, describes the characteristics and purpose of constructors, demonstrates their syntax with code examples, and introduces method overloading with practical illustrations.

ConstructorInitializationJava
0 likes · 7 min read
Java Constructors, Initialization, and Method Overloading Explained
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Understanding Java Reflection: Classes, Methods, Constructors, and Fields

This article explains Java's reflection mechanism, showing how to obtain Class objects, dynamically load classes, and retrieve information about methods, fields, and constructors, accompanied by practical code examples that demonstrate inspecting and invoking members at runtime.

ConstructorJava
0 likes · 7 min read
Understanding Java Reflection: Classes, Methods, Constructors, and Fields
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 5, 2017 · Frontend Development

Master JavaScript Functions: From Basics to Advanced Patterns

This article provides a comprehensive guide to JavaScript functions, covering basic definitions, anonymous functions, default parameters, the arguments object, IIFE, nested functions, constructor functions, and best practices for using the new keyword, all illustrated with clear code examples.

Anonymous FunctionsConstructorDefault Parameters
0 likes · 13 min read
Master JavaScript Functions: From Basics to Advanced Patterns
Qunar Tech Salon
Qunar Tech Salon
Mar 6, 2016 · Fundamentals

Understanding Java Constructor Execution Order

This article examines the Java constructor execution sequence, detailing how class initialization proceeds from zeroed memory allocation through static and instance variable initialization, parent constructor invocation, and finally the subclass constructor, illustrated with sample code and explanatory comments.

ConstructorInitialization
0 likes · 4 min read
Understanding Java Constructor Execution Order