René's URL Explorer Experiment


Title: feat: add educational OOP concepts following TypeScript Handbook (#290) by MOHD-TAHA-KHAN · Pull Request #306 · TheAlgorithms/TypeScript · GitHub

Open Graph Title: feat: add educational OOP concepts following TypeScript Handbook (#290) by MOHD-TAHA-KHAN · Pull Request #306 · TheAlgorithms/TypeScript

X Title: feat: add educational OOP concepts following TypeScript Handbook (#290) by MOHD-TAHA-KHAN · Pull Request #306 · TheAlgorithms/TypeScript

Description: [FEATURE]: OOP Educational Guide - Abstraction, Inheritance, Encapsulation, and Polymorphism 📝 Description This PR resolves #290 by introducing a structured set of educational examples focused on Object-Oriented Programming (OOP) in TypeScript. Following the guidelines from the TypeScript Handbook, these examples are designed to help contributors and students understand how to architect clean, reusable, and maintainable code. 🚀 Key Educational Concepts To provide a clear learning path, the code is organized into concept-specific files: oop/Abstraction.ts: Demonstrates the use of abstract classes and methods to define blueprints. oop/Inheritance.ts: Shows how to extend classes using the extends and super keywords. oop/Encapsulation.ts: Illustrates data protection using private and protected access modifiers along with getters. oop/Polymorphism.ts: Provides examples of using interfaces to treat different concrete implementations as a single type. 📚 Documentation References Each file is heavily commented and refers to the following official documentation for deeper understanding: TypeScript Handbook: Classes TypeScript Handbook: Member Visibility TypeScript Handbook: Abstract Classes 🧪 Testing Comprehensive unit tests have been added in oop/__tests__/OOP.test.ts to verify the mathematical and logical correctness of the examples. Verified Inheritance and Abstraction logic via Rectangle area calculation. Verified Encapsulation by testing private property protection in BankAccount. Verified Polymorphic behavior using different Logger implementations. By structuring these as separate files, this contribution serves as a living syllabus for the repository's OOP standards.

Open Graph Description: [FEATURE]: OOP Educational Guide - Abstraction, Inheritance, Encapsulation, and Polymorphism 📝 Description This PR resolves #290 by introducing a structured set of educational examples focused on O...

X Description: [FEATURE]: OOP Educational Guide - Abstraction, Inheritance, Encapsulation, and Polymorphism 📝 Description This PR resolves #290 by introducing a structured set of educational examples focused on O...

Opengraph URL: https://github.com/TheAlgorithms/TypeScript/pull/306

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:aff30a2e-317c-3ad5-8769-c8c536bc7e5d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA90:119F46:941F40:D2D749:6A631DD4
html-safe-nonce14e1036ec050e988cf481fd1dbd7b145c7d78093838a84d73c81d1f9b6788ef1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTkwOjExOUY0Njo5NDFGNDA6RDJENzQ5OjZBNjMxREQ0IiwidmlzaXRvcl9pZCI6IjIzMDc5NDE4MDI2MDIzMzk3OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac430c4b074ffefcdde6da45b949793d7828f7bd77f90be9b653fd627fb2cbc8a7
hovercard-subject-tagpull_request:3645376621
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/TheAlgorithms/TypeScript/pull/306/files
twitter:imagehttps://avatars.githubusercontent.com/u/114274512?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/114274512?s=400&v=4
og:image:alt[FEATURE]: OOP Educational Guide - Abstraction, Inheritance, Encapsulation, and Polymorphism 📝 Description This PR resolves #290 by introducing a structured set of educational examples focused on O...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/TheAlgorithms/TypeScript git https://github.com/TheAlgorithms/TypeScript.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id532391729
octolytics-dimension-repository_nwoTheAlgorithms/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id532391729
octolytics-dimension-repository_network_root_nwoTheAlgorithms/TypeScript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6a93e25585f487ddff9e3996c06d5b869d6e1828
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/TheAlgorithms/TypeScript/pull/306/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FTypeScript%2Fpull%2F306%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FTypeScript%2Fpull%2F306%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=TheAlgorithms%2FTypeScript
Reloadhttps://github.com/TheAlgorithms/TypeScript/pull/306/files
Reloadhttps://github.com/TheAlgorithms/TypeScript/pull/306/files
Reloadhttps://github.com/TheAlgorithms/TypeScript/pull/306/files
Please reload this pagehttps://github.com/TheAlgorithms/TypeScript/pull/306/files
TheAlgorithms https://github.com/TheAlgorithms
TypeScripthttps://github.com/TheAlgorithms/TypeScript
Please reload this pagehttps://github.com/TheAlgorithms/TypeScript/pull/306/files
Notifications https://github.com/login?return_to=%2FTheAlgorithms%2FTypeScript
Fork 574 https://github.com/login?return_to=%2FTheAlgorithms%2FTypeScript
Star 2.9k https://github.com/login?return_to=%2FTheAlgorithms%2FTypeScript
Code https://github.com/TheAlgorithms/TypeScript
Issues 24 https://github.com/TheAlgorithms/TypeScript/issues
Pull requests 50 https://github.com/TheAlgorithms/TypeScript/pulls
Actions https://github.com/TheAlgorithms/TypeScript/actions
Projects https://github.com/TheAlgorithms/TypeScript/projects
Security and quality 0 https://github.com/TheAlgorithms/TypeScript/security
Insights https://github.com/TheAlgorithms/TypeScript/pulse
Code https://github.com/TheAlgorithms/TypeScript
Issues https://github.com/TheAlgorithms/TypeScript/issues
Pull requests https://github.com/TheAlgorithms/TypeScript/pulls
Actions https://github.com/TheAlgorithms/TypeScript/actions
Projects https://github.com/TheAlgorithms/TypeScript/projects
Security and quality https://github.com/TheAlgorithms/TypeScript/security
Insights https://github.com/TheAlgorithms/TypeScript/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FTheAlgorithms%2FTypeScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FTheAlgorithms%2FTypeScript%2Fissues%2Fnew%2Fchoose
MOHD-TAHA-KHANhttps://github.com/MOHD-TAHA-KHAN
TheAlgorithms:masterhttps://github.com/TheAlgorithms/TypeScript/tree/master
MOHD-TAHA-KHAN:feat/oop-demonstrationhttps://github.com/MOHD-TAHA-KHAN/TypeScript/tree/feat/oop-demonstration
Conversation 0 https://github.com/TheAlgorithms/TypeScript/pull/306
Commits 1 https://github.com/TheAlgorithms/TypeScript/pull/306/commits
Checks 0 https://github.com/TheAlgorithms/TypeScript/pull/306/checks
Files changed https://github.com/TheAlgorithms/TypeScript/pull/306/files
Please reload this pagehttps://github.com/TheAlgorithms/TypeScript/pull/306/files
feat: add educational OOP concepts following TypeScript Handbook (#290) https://github.com/TheAlgorithms/TypeScript/pull/306/files#top
Show all changes 1 commit https://github.com/TheAlgorithms/TypeScript/pull/306/files
63355f9 feat: add educational OOP concepts following TypeScript Handbook (#290) MOHD-TAHA-KHAN May 7, 2026 https://github.com/TheAlgorithms/TypeScript/pull/306/commits/63355f93305daeeddc4945d0ced4afdae8c49588
Clear filters https://github.com/TheAlgorithms/TypeScript/pull/306/files
Please reload this pagehttps://github.com/TheAlgorithms/TypeScript/pull/306/files
Please reload this pagehttps://github.com/TheAlgorithms/TypeScript/pull/306/files
Abstraction.ts https://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-7e053a2b0972eb840a765d3604d8f9b2fceb49345e74571aeccbf93d268f0411
Encapsulation.ts https://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-7db6f3fee150eba3b7714062072cdd02774711dba3650780a46ec1af50c1c779
Inheritance.ts https://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-2e8c0fd8868484c36ca4fc6b9ea928d93a827cd0cb8b4b0ea03fa80d0edfb740
Polymorphism.ts https://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-a45e4004ed824e36460620d56fcc6a65ac81bbffa8110dd8b182c38f8e5a2129
OOP.test.ts https://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-cbe39ff09c5f137357b61cf0d596c45978c39dd3a22201d8f31e609d62cf651b
https://github.com/TheAlgorithms/TypeScript/blob/master/.github/CODEOWNERS#L1
oop/Abstraction.tshttps://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-7e053a2b0972eb840a765d3604d8f9b2fceb49345e74571aeccbf93d268f0411
View file https://github.com/TheAlgorithms/TypeScript/blob/63355f93305daeeddc4945d0ced4afdae8c49588/oop/Abstraction.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/TypeScript/pull/306/{{ revealButtonHref }}
https://github.com/TheAlgorithms/TypeScript/blob/master/.github/CODEOWNERS#L1
oop/Encapsulation.tshttps://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-7db6f3fee150eba3b7714062072cdd02774711dba3650780a46ec1af50c1c779
View file https://github.com/TheAlgorithms/TypeScript/blob/63355f93305daeeddc4945d0ced4afdae8c49588/oop/Encapsulation.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/TypeScript/pull/306/{{ revealButtonHref }}
https://github.com/TheAlgorithms/TypeScript/blob/master/.github/CODEOWNERS#L1
oop/Inheritance.tshttps://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-2e8c0fd8868484c36ca4fc6b9ea928d93a827cd0cb8b4b0ea03fa80d0edfb740
View file https://github.com/TheAlgorithms/TypeScript/blob/63355f93305daeeddc4945d0ced4afdae8c49588/oop/Inheritance.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/TypeScript/pull/306/{{ revealButtonHref }}
https://github.com/TheAlgorithms/TypeScript/blob/master/.github/CODEOWNERS#L1
oop/Polymorphism.tshttps://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-a45e4004ed824e36460620d56fcc6a65ac81bbffa8110dd8b182c38f8e5a2129
View file https://github.com/TheAlgorithms/TypeScript/blob/63355f93305daeeddc4945d0ced4afdae8c49588/oop/Polymorphism.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/TypeScript/pull/306/{{ revealButtonHref }}
https://github.com/TheAlgorithms/TypeScript/blob/master/.github/CODEOWNERS#L1
oop/test/OOP.test.tshttps://github.com/TheAlgorithms/TypeScript/pull/306/files#diff-cbe39ff09c5f137357b61cf0d596c45978c39dd3a22201d8f31e609d62cf651b
View file https://github.com/TheAlgorithms/TypeScript/blob/63355f93305daeeddc4945d0ced4afdae8c49588/oop/test/OOP.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/TypeScript/pull/306/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.