{"id":21231540,"url":"https://github.com/piyalidas10/oops-interview-preparation","last_synced_at":"2026-04-27T18:31:27.350Z","repository":{"id":260798649,"uuid":"882353187","full_name":"piyalidas10/OOPS-Interview-Preparation","owner":"piyalidas10","description":"OOPs Interview Questions and Answers","archived":false,"fork":false,"pushed_at":"2025-01-01T04:19:23.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T02:32:16.187Z","etag":null,"topics":["interview","javascript","oops","typescript"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piyalidas10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-02T15:49:31.000Z","updated_at":"2025-01-31T02:40:24.000Z","dependencies_parsed_at":"2024-11-02T17:26:42.143Z","dependency_job_id":null,"html_url":"https://github.com/piyalidas10/OOPS-Interview-Preparation","commit_stats":null,"previous_names":["piyalidas10/oops-interview-preparation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/piyalidas10/OOPS-Interview-Preparation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyalidas10%2FOOPS-Interview-Preparation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyalidas10%2FOOPS-Interview-Preparation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyalidas10%2FOOPS-Interview-Preparation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyalidas10%2FOOPS-Interview-Preparation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piyalidas10","download_url":"https://codeload.github.com/piyalidas10/OOPS-Interview-Preparation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyalidas10%2FOOPS-Interview-Preparation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261080562,"owners_count":23106597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interview","javascript","oops","typescript"],"created_at":"2024-11-20T23:47:10.962Z","updated_at":"2026-04-27T18:31:27.316Z","avatar_url":"https://github.com/piyalidas10.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# OOPS-Interview-Preparation\n| No. | Questions \u0026 Answers                                                                                                                                                  |\n| --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| 1   |  Encapsulation implementaion in JavaScipt \u0026 TypeScript? \u003cbr\u003e\u003cbr\u003e 1. In JavaScript, encapsulation is achieved by using closures and access modifiers, such as the private and public keywords. \u003cbr\u003e 2. In NestJS, encapsulation is observed in how services and controllers are constructed and used. \u003cbr\u003e 3. In TypeScript, we can achieve encapsulation using access modifiers (public, private, protected). TypeScript supports the use of accessors, also known as getters and setters, to provide controlled access to class properties. Getters and setters allow us to define custom logic when retrieving or assigning property values, enabling better encapsulation and validation. \u003cbr/\u003e https://medium.com/@piyalidas.it/encapsulation-practical-uses-22d5f5b9e697\n| 2   |  Inheritance implementaion in JavaScipt \u0026 TypeScript? \u003cbr\u003e\u003cbr\u003e 1. In JavaScript, inheritance is achieved by using the prototype property and the Object.create() method. \u003cbr\u003e 2. TypeScript supports single inheritance, where a class can inherit from a single base class. TypeScript supports multiple inheritance using Interfaces. \u003cbr/\u003e https://medium.com/@piyalidas.it/inheritance-practical-uses-0c95884e880d\n| 3   |  Polymorphism implementaion in JavaScipt \u0026 TypeScript? \u003cbr\u003e\u003cbr\u003e 1. In JavaScript, polymorphism is achieved by using function overloading and function overriding. \u003cbr\u003e 2. TypeScript supports polymorphism through inheritance and interfaces. \u003cbr\u003e 3. Generics in TypeScript are a way to implement parametric polymorphism. \u003cbr\u003e https://medium.com/@piyalidas.it/polymorphism-practical-uses-2ed5d029589a\n| 4   |  Abstraction implementaion in JavaScipt \u0026 TypeScript? \u003cbr\u003e\u003cbr\u003e 1. In TypeScript, abstraction is achieved through classes and interfaces. \u003cbr/\u003e 2. In JavaScript, the concept of an abstract class is not natively supported as it is in other languages such as Java, TypeScript, and Python.  \u003cbr/\u003e https://medium.com/@piyalidas.it/abstraction-practical-uses-febbe3c65bb6\n\n### 1. Constructor Design Pattern\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eAnswer\u003c/b\u003e\u003c/summary\u003e\n\u003cp\u003e\n\n#### \n```\n\n```\n \n\u003c/p\u003e\n\u003c/details\u003e\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyalidas10%2Foops-interview-preparation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiyalidas10%2Foops-interview-preparation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyalidas10%2Foops-interview-preparation/lists"}