This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/***** | |
INHERITANCE | |
******/ | |
class AnimalKingdom { | |
constructor(name){ | |
this.speed = 0; | |
this.name = name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// Algorithms | |
// | |
// Created by Sanni Michael on 01/05/2019. | |
// Copyright © 2019 Sanni Michael. All rights reserved. | |
/**** The programs written below makes use of functions which are later called in the main function. | |
This allows us to familiarize ourself with modular programming |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// index.cpp | |
// Algorithms | |
// | |
// Created by Sanni Michael on 30/05/2019. | |
// Copyright © 2019 Sanni Michael. All rights reserved. | |
#include <iostream> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(************************************************************************ | |
Area of Circle - Program to find Area of a circle | |
*************************************************************************) | |
program AreaOfCircle; | |
const | |
PI = 3.141592654; // constant value of PI | |
var |