---
title: "Carolin James (@BreakTheCode) | Hashnode"
description: "Carolin James (@BreakTheCode) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@BreakTheCode"
---

@BreakTheCode

# Carolin James

@BreakTheCode · Joined May 2024

### [Lets Encapsulate : Designing an ATM](https://breakthecode.hashnode.dev/lets-encapsulate-designing-an-atm?utm_source=hashnode&utm_medium=feed)

In this article we would cover one of the fundamental concept of OOP, Encapsulation. Encapsulation is the practice of bundling the data (variables) and methods (functions) that operate on the data into a single unit, or class, and restricting access ...

2 min read · [breakthecode.hashnode.dev](https://breakthecode.hashnode.dev/lets-encapsulate-designing-an-atm?utm_source=hashnode&utm_medium=feed)

[Jul 8, 2024](https://hashnode.com/posts/lets-encapsulate-designing-an-atm/668c2fec4ee86de6d0157b41)

### [Inheritance in JS Simplified using objects](https://breakthecode.hashnode.dev/inheritance-in-js-simplified-using-objects?utm_source=hashnode&utm_medium=feed)

In this article we would see how we can implement inheritance through objects Lets create a parent prototype object : const staffProto = { init(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; }, empDetails()...

1 min read · [breakthecode.hashnode.dev](https://breakthecode.hashnode.dev/inheritance-in-js-simplified-using-objects?utm_source=hashnode&utm_medium=feed)

[Jun 5, 2024](https://hashnode.com/posts/inheritance-in-js-simplified-using-objects/6660ae7ef84bacbb5b56e487)

### [JS Inheritance Simplified with ES6 classes](https://breakthecode.hashnode.dev/js-inheritance-simplified-with-es6-classes?utm_source=hashnode&utm_medium=feed)

Lets create a class , Staff : class Staff { constructor(empName, empId, dept, doj) { this.empName = empName; this.empId = empId; this.dept = dept; this.doj = doj; } //methods are added to the prototype property of the class em...

2 min read · [breakthecode.hashnode.dev](https://breakthecode.hashnode.dev/js-inheritance-simplified-with-es6-classes?utm_source=hashnode&utm_medium=feed)

[Jun 4, 2024](https://hashnode.com/posts/js-inheritance-simplified-with-es6-classes/665f5cd707f283100d538cb1)

### [JS Inheritance Simplified with Constructor Functions](https://breakthecode.hashnode.dev/js-inheritance-simplified-with-constructor-functions?utm_source=hashnode&utm_medium=feed)

Lets create an Employee constructor function with the following instance properties. const Employees = function (empName, empId, dept, doj) { this.empId = empId; this.empName = empName; this.dept = dept; this.doj = doj; }; Lets create a meth...

2 min read · [breakthecode.hashnode.dev](https://breakthecode.hashnode.dev/js-inheritance-simplified-with-constructor-functions?utm_source=hashnode&utm_medium=feed)

[Jun 2, 2024](https://hashnode.com/posts/js-inheritance-simplified-with-constructor-functions/665cb9ba2195668db865615a)

### [Do you need a constructor every time you implement prototypal inheritance ?🤔💭](https://breakthecode.hashnode.dev/do-you-need-a-constructor-every-time-you-implement-prototypal-inheritance?utm_source=hashnode&utm_medium=feed)

Well the answer is NO. Hey there ! Welcome back to another read. It is possible in Javascript to manually implement prototypal inheritance. Well how ?Lets look at the code below. //object literal (prototype) const empProto = { setEmpLocation(locati...

1 min read · [breakthecode.hashnode.dev](https://breakthecode.hashnode.dev/do-you-need-a-constructor-every-time-you-implement-prototypal-inheritance?utm_source=hashnode&utm_medium=feed)

[Jun 1, 2024](https://hashnode.com/posts/do-you-need-a-constructor-every-time-you-implement-prototypal-inheritance/665b53729aaed3bb0e8259cc)
