Skip to content

The objective of this repo is to test the actual scale of object oriented programming capabilities in JavaScript ES6 compared to high level object oriented programming language.

License

Notifications You must be signed in to change notification settings

A-safarji/object-oriented-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript class-based inheritance

The objective of this repo is to test the actual scale of object oriented programming capabilities in JavaScript ES6 / ECM6 compared to high level object oriented programming language. Example contains a base class Person and two sub classes Teacher and Student which extend the base class.

Object Oriented Programming JavaScript

Learn Object Oriented JavaScript concepts in action. ⚡

Check this blog for the difference between ES5 and ES6 classes

What is class diagram in OOP?

In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects them selves.

  • For more details: here

#f03c15 However, our work will be a class diagram as shown below:

Example

#1589F0 Implement the following diagram using inheritance in JS OOP approach in ECMA6 UML

  • This is an example to see how the inheritance in JS OOP works + implementing actual diagram.

Setup

  • Any Text Editor (eg. vscode, Atom, Sublime text).
  • Enable JavaScript in your browser + inspect console to test + more details for start-up here

Contributing

  • Fork the Repository here for practicing, editing and applying more functions to it and share with me!!
  • Let's do it!!!

About

The objective of this repo is to test the actual scale of object oriented programming capabilities in JavaScript ES6 compared to high level object oriented programming language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published