Tagged articles
7 articles
Page 1 of 1
php Courses
php Courses
Aug 14, 2025 · Fundamentals

Master C++ Access Modifiers: public, private, protected Explained with Real Code

This article thoroughly explains C++'s three access control modifiers—public, private, and protected—covering their definitions, differences, practical usage in classes, inheritance effects, friend functions, and best practices for encapsulation and maintainable OOP design.

Access ModifiersEncapsulationInheritance
0 likes · 6 min read
Master C++ Access Modifiers: public, private, protected Explained with Real Code
php Courses
php Courses
Sep 28, 2023 · Backend Development

Understanding Encapsulation in PHP: Benefits, Code Examples, and Best Practices

Encapsulation, a core OOP principle, is explored in PHP with explanations of its benefits for data protection and modular code, followed by practical class examples—including a Person class and a BankAccount class—plus best‑practice recommendations for using access modifiers effectively.

Access ModifiersEncapsulationOOP
0 likes · 5 min read
Understanding Encapsulation in PHP: Benefits, Code Examples, and Best Practices
FunTester
FunTester
Oct 9, 2020 · Backend Development

Why Does My Groovy Object’s toString Return Empty? A Debugging Tale

The article explains a puzzling bug where a Groovy‑created object's toString becomes empty after fastjson serialization, traces the issue to Java access modifiers, demonstrates the problem with sample code and console output, and resolves it by adding a public modifier.

Access ModifiersGroovydebugging
0 likes · 3 min read
Why Does My Groovy Object’s toString Return Empty? A Debugging Tale
Big Data Technology & Architecture
Big Data Technology & Architecture
Mar 9, 2019 · Fundamentals

Scala Access Modifiers: private, protected, and public

This article explains Scala's access modifiers—private, protected, and public—including their default visibility, stricter rules compared to Java, scoped protection syntax, and multiple code examples illustrating how these modifiers affect member accessibility in nested and package structures.

Access ModifiersPrivateProtected
0 likes · 5 min read
Scala Access Modifiers: private, protected, and public
Java Captain
Java Captain
Apr 13, 2018 · Fundamentals

Understanding Encapsulation and Interfaces in Java

This article explains Java encapsulation and interfaces, illustrating how access modifiers like public and private control object members, improve usability and safety, and provides a complete code example with a Human class, usage guidelines, and a practical exercise.

Access ModifiersEncapsulationOOP
0 likes · 7 min read
Understanding Encapsulation and Interfaces in Java