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
public abstract class Shape { | |
public abstract void draw(); | |
public abstract void paint(String color); | |
} | |
public class Square extends Shape { | |
@Override | |
public void draw() { | |
System.out.println("Square is drawing..."); |
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
// Fibonacci series generator | |
function fibonacci(n) { | |
var a = 0; | |
var b = 1; | |
var c = 0; | |
for (var i = 0; i < n; ++i) { | |
console.log(a); | |
c = a + b; | |
a = b; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Bootstrap Learning</title> | |
<link | |
rel="stylesheet" | |
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" |
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
export interface ToDoItem { | |
id: number; | |
title: string; | |
description: string; | |
status: string; | |
createdOn: Date | string; | |
statusChangedOn: Date | string; | |
} | |
export const todoList: ToDoItem[] = [ |
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
employees: EmployeeModel[] = [ | |
{ | |
id: 1, | |
name: 'Anya', | |
email: 'adavidov0@foxnews.com', | |
joiningDate: new Date('2019-12-16T23:37:46Z'), | |
city: 'Camp Thorel', | |
}, | |
{ | |
id: 2, |
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
let a = 100; |