In object-oriented programming (OOP), polymorphism is key to creating flexible, scalable code by allowing us to work with objects through a common interface. While JavaScript lacks native support for interfaces and abstract classes, we can simulate these structures with patterns that enforce flexibility and structure in our code. In this post, we’ll explore how to … Continue reading Simulating Interfaces and Abstract Classes in JavaScript for Flexible, Polymorphic Code
Tag: polymorphism
Is Solidity an Object-Oriented Programming Language?
Solidity is the leading smart contract programming language for developing decentralized applications (dApps) on Ethereum and other Ethereum Virtual Machine (EVM) compatible blockchains. Since many developers come from object-oriented programming (OOP) backgrounds (for example, JavaScript, C++, or Python), a common question arises: Is Solidity truly an OOP language? The answer isn't straightforward. While solidity incorporates … Continue reading Is Solidity an Object-Oriented Programming Language?
Programming Best Practices for Technical Writers – Polymorphism
Welcome to the fifth part of my series on essential programming best practices for technical writers. In the last post, I discussed the concept of reusability. On this post I’ll focus on the principle of polymorphism. Polymorphism allows objects from different classes to be treated as instances of a common superclass, enabling them to respond … Continue reading Programming Best Practices for Technical Writers – Polymorphism