Murali Singhmuralisingh.hashnode.dev·Apr 20, 2024Understanding Prototypes : The Core of JavaScript's Inheritance ModelJavaScript objects inherit features from one another through prototypes. Example: let car = { brand: "Toyota", model: "Camry", year: 2022, drive: function() { console.log("The car is driving."); } }; console.log(car); Explanation: Wh...Discuss·1 likeprototype
Aditya Singhadityaksi.hashnode.dev·Apr 20, 2024Difference between JavaScript's Prototypal Inheritance and Traditional InheritanceJavaScript (JS) has a special way for objects to share traits. It might sound like inheritance, a concept from other languages, but it works differently. In JS, objects can link to another object to access methods or properties. This is called protot...DiscussJavaScript
Stella Mariesmkou.hashnode.dev·Apr 15, 2024Herd Game: Code StructureWhy a herding game? I was reading the book, AI in Games by Ian Millington (2019). I didn't finish the book, getting through the first three chapters, which is not much if you check, just about 7%, but it is in my immediate queue for reading, apart fr...Discuss·1 likeJavaScript
Marcia Satiebetweentags.hashnode.dev·Apr 13, 2024C# Fundamentals - Classes -InheritanceWhat is? In C#, inheritance is the ability that allows a class (called the child or derived class) to use all methods and properties from another class (called the base class or parent). Why is it useful? Being able to inherit properties and methods ...DiscussC# FundamentalsC#
Ameramertricic.hashnode.dev·Apr 13, 20243. Prototypes and Inheritance ExerciseThe example I came up with for this article is for learning purposes. It's not related to real-world use cases. Thinking of a good example turned out to be tricky. One of the reasons for that is a difficulty of coming up with an example that has some...DiscussJavaScript Prototypes and InheritanceJavaScript
Gourav Ghosalgg221b.hashnode.dev·Apr 12, 2024OOPs! An interview experience Part 1Context Back in the autumn of 2022, during university on-campus placements, I sat for the second round of my interview at Persistent Systems, which was one of my best interview experiences. A purely technical round for which I was expecting questions...DiscussProgramming Blogs
Dev LeaderProhashnode.devleader.ca·Apr 11, 2024Examples of Inheritance in C# – A Simplified Introduction to OOPObject-oriented programming (OOP) is a fundamental concept in software engineering — even though the wave of functional programming is upon us! It’s a programming paradigm that allows developers to create modular and reusable code by organizing data ...DiscussObject Oriented Programming
Saurabh Mahajanblog.saurabhmahajan.com·Apr 8, 2024Object-Oriented Programming ConceptsObject-Oriented Programming (OOP) has emerged as a powerful paradigm in the world of software development, revolutionizing the way we design and build applications. At its core, OOP is a approach that models real-world concepts by creating objects th...DiscussFundamentalsoop
Anshuman Tiwarianshuman-tiwari.hashnode.dev·Mar 31, 2024Four pillars of Object Oriented ProgrammingAs you may have already heard that Object Oriented Programming is one of the most popular programming paradigm ( Programming paradigm is the way of writing efficient, scalable and readable code). Object Oriented Programming defines the set of princip...Discussoop
Caleb Harriscalebharris.hashnode.dev·Mar 25, 2024How I would explain Object-oriented programming to a 5th graderLet's face it, programming can be very overwhelming, but the basic ideas behind it are simpler than they seem. Object-oriented programming (OOP) is one such concept. Imagine building with toy blocks – that's OOP! There are four main principles: Encap...DiscussObject Oriented Programming