Tagged articles
class
28 articles · Page 1 of 1
The article explains how the Java final keyword can be applied to classes and methods to prevent inheritance and overriding, provides syntax and concrete code examples—including a final class and a final method in a chess algorithm—and advises using final for safety in constructors.
FinalJavaclass
0 likes · 5 min read

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.
Javaclassconstructor
0 likes · 4 min read

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.
JavaMethod OverloadingModifiers
0 likes · 8 min read

This article explains the relationships among Python’s type, object, and class constructs, demonstrates how to create classes with both type and class keywords, explores metaclasses, inheritance patterns, and essential object methods, providing clear code examples for each concept.
InheritanceMetaclassOOP
0 likes · 6 min read

The article explains why declaring business data structures with TypeScript's interface or type is discouraged, illustrates practical problems such as property name changes and type mismatches, and advocates using classes to gain decorator support, combined behavior and data, and better extensibility.
TypeTypeScriptclass
0 likes · 8 min read

This article explains the role of Python's __init__ constructor in object‑oriented programming, demonstrates how it initializes object attributes with example code, and shows how other methods can access those initialized values.
OOPPythonclass
0 likes · 5 min read

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.
ES6InheritanceJavaScript
0 likes · 22 min read

This article compares Java classes with Go structs, covering how each language handles state and behavior, inheritance versus composition, and visibility rules, while providing concrete code examples to illustrate the practical differences for developers.
GoInheritanceJava
0 likes · 6 min read

The article explains that Swift’s nil differs from Objective‑C’s null pointer by representing ‘no value’ for any type through optionals, details how various optionals (Bool?, String?, class?, enum?) are encoded in memory, shows the extra byte cost for Int?, and advises minimizing optional Int fields in structs, using 0 when appropriate.
EnumSWIFTStruct
0 likes · 6 min read

This tutorial explains how to build a reusable PHP Calendar class that handles year, month, navigation and renders an HTML table, and shows a simple front‑end script that loads the class and displays the calendar, complete with CSS styling and example output.
PHPcalendarclass
0 likes · 10 min read

This article explains why the assumption that java.lang.Object is an instance of java.lang.Class is wrong, how Class actually extends Object, and how the JVM resolves the chicken‑egg problem through a bootstrap process that initializes core types before normal execution.
JVMJavaObject
0 likes · 7 min read

This article explains the purpose of the self parameter in Python classes, using analogies and concrete code examples to show how self represents the instance itself, how it is passed automatically, and how different objects produce distinct self values when methods are invoked.
InstanceOOPPython
0 likes · 5 min read


政采云技术Mar 8, 2022 · Frontend Development
This article introduces JavaScript decorators, explains their relation to the decorator design pattern, shows how to configure Babel for decorator support, demonstrates class and method decorator syntax with detailed code examples, and discusses practical usage scenarios and execution order in modern front‑end projects.
BabelDecoratorDesign Pattern
0 likes · 13 min read

This article provides a comprehensive guide to Python decorators, covering their core concepts, practical use‑cases, step‑by‑step creation of simple, parameterized, class‑based, and advanced decorators, complete with runnable code examples.
DecoratorFunctionPython
0 likes · 11 min read

This article explains how Python class attributes can be hidden from external code using double‑underscore name mangling, demonstrates the effect with concrete examples, and shows how to provide controlled access through getter, setter, and validation methods.
Getter/Setterclassname mangling
0 likes · 6 min read

This article explains Python's inheritance mechanism, showing how subclasses can reuse and extend parent class functionality, demonstrates the syntax for single and multiple inheritance, and illustrates method resolution order with clear code examples.
InheritanceMultiple InheritanceOOP
0 likes · 6 min read

This article explains the concept, syntax, and practical examples of Python decorators—including function decorators, class‑based decorators, multi‑layer decorators, and class‑as‑decorator patterns—providing clear code snippets and execution results to help readers master decorator usage.
Code ExampleFunctionPython
0 likes · 15 min read

This article explains Python's object‑oriented fundamentals, covering class and instance attributes, instance, class and static methods, inheritance techniques, the super() function, and the @property decorator, each illustrated with clear code examples.
InheritanceOOPProperty
0 likes · 4 min read

This article explains Java's reflection mechanism, showing how classes are represented by Class objects, how to obtain them at runtime, and demonstrates common reflective operations such as inspecting fields, constructors, methods, and arrays with practical code examples and typical interview questions.
ReflectionRuntimeTutorial
0 likes · 16 min read

This article explains the fundamentals of Python class inheritance, covering five typical ways to use parent class attributes and methods—including direct calls, super() for private members, method overriding, invoking __init__, and passing initialization parameters—accompanied by clear code examples.
InheritancePythonclass
0 likes · 6 min read

This article provides a comprehensive guide to Java's reflection mechanism, covering its definition, core capabilities, practical code examples, common API usage, and considerations such as performance and security, enabling developers to understand and apply reflection effectively in real-world projects.
APIJavaReflection
0 likes · 10 min read

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.
ES5ES6Inheritance
0 likes · 12 min read

This tutorial explains how Java methods access object data members, the role of the implicit this reference, parameter passing, calling other methods within the same object, and both default and explicit initialization of class fields, using clear code examples throughout.
JavaOOPclass
0 likes · 5 min read

This article explains Java's reflection mechanism, describing how Class objects represent runtime types, how to obtain them, and demonstrating common reflective operations such as inspecting methods, accessing fields, invoking constructors, handling arrays, and solving typical exercises with complete code examples.
FieldReflectionRuntime
0 likes · 11 min read

This article reviews the compatibility of various Node.js versions with ES6 features, explains key ES6 constructs such as let, const, template literals, default parameters, destructuring, and classes, and presents performance benchmarks comparing these features to their ES5 equivalents, concluding with practical recommendations for developers.
ES6JavaScriptNode.js
0 likes · 6 min read

This article explains Kotlin class declarations, covering primary and secondary constructors, visibility modifiers, and special class types such as enums, sealed classes, and data classes, with code examples illustrating each concept.
Enumclassconstructor
0 likes · 7 min read

This article explores Swift's memory model and pointer mechanics, explains how HandyJSON converts JSON to class instances without runtime support, demonstrates MemoryLayout utilities, and shows practical techniques for modifying struct and class properties directly in memory.
JSON parsingMemory LayoutSWIFT
0 likes · 17 min read


ITPUBMar 6, 2017 · Backend Development
This tutorial shows how to create a Python‑based profanity‑filter for live chat by defining a word list, replacing offensive terms with asterisks, logging each message with timestamps, and organizing the logic inside a Player class for easy reuse.
LoggingTutorialchat
0 likes · 6 min read
