Skip to content
Snippets Groups Projects
Data.ts 475 B
Newer Older
Sandesh's avatar
Sandesh committed
class SampleDataBase{
    userList : User[] = []

    constructor(){

        this.userList.push(new User("aasda","asdasd"))
        this.userList.push(new User("aasda","asdasd"))
        this.userList.push(new User("aasda","asdasd"))
        this.userList.push(new User("aasda","asdasd"))
        this.userList.push(new User("aasda","asdasd"))


    }

}

class User {
    name;
    psw;

    constructor(name, psw){
        this.name = name;
        this.psw = psw;
    }
}