Title: Suggestion: abstract classes · Issue #6 · microsoft/TypeScript · GitHub
Open Graph Title: Suggestion: abstract classes · Issue #6 · microsoft/TypeScript
X Title: Suggestion: abstract classes · Issue #6 · microsoft/TypeScript
Description: Support an abstract keyword for classes and their methods Examples: abstract class Base { abstract getThing(): string; getOtherThing() { return 'hello'; } } var x = new Base(); // Error, 'Base' is abstract // Error, must either be 'abstr...
Open Graph Description: Support an abstract keyword for classes and their methods Examples: abstract class Base { abstract getThing(): string; getOtherThing() { return 'hello'; } } var x = new Base(); // Error, 'Base' is ...
X Description: Support an abstract keyword for classes and their methods Examples: abstract class Base { abstract getThing(): string; getOtherThing() { return 'hello'; } } var x = new Base(); // Error, ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/6
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: abstract classes","articleBody":"Support an `abstract` keyword for classes and their methods\n\nExamples:\n\n``` TypeScript\nabstract class Base {\n abstract getThing(): string;\n getOtherThing() { return 'hello'; }\n}\nvar x = new Base(); // Error, 'Base' is abstract\n\n// Error, must either be 'abstract' or implement concrete 'getThing'\nclass Derived1 extends Base { }\n\nclass Derived2 extends Base {\n getThing() { return 'hello'; }\n foo() { super.getThing(); } // Error: cannot invoke abstract members through 'super'\n}\nvar x = new Derived2(); // OK\nvar y: Base = new Derived2(); // Also OK\ny.getThing(); // OK\ny.getOtherThing(); // OK\n\nabstract class Empty { } // OK\n```\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2014-07-15T16:45:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":50},"url":"https://github.com/6/TypeScript/issues/6"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9cfed3a9-7346-75e8-876b-f64653d815a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3C0:320E86:14A490D:1DED4D0:6A4E4809 |
| html-safe-nonce | 7e7c081693993ac663679fee1ecaa981d71939ce66354dc641dfb89de98ea611 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0MwOjMyMEU4NjoxNEE0OTBEOjFERUQ0RDA6NkE0RTQ4MDkiLCJ2aXNpdG9yX2lkIjoiNzI0MjQxMzU2MjcxODQ3MjIwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2ea5e68fc289930e2dcdacc26571d66927bfd10bee3aaeedb33c6aeb01b240ad |
| hovercard-subject-tag | issue:37902683 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ad56f0b8fd5a43ce38e6f64fd81b871d952d2deccdb6df2787757bf17e8b9ff/microsoft/TypeScript/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ad56f0b8fd5a43ce38e6f64fd81b871d952d2deccdb6df2787757bf17e8b9ff/microsoft/TypeScript/issues/6 |
| og:image:alt | Support an abstract keyword for classes and their methods Examples: abstract class Base { abstract getThing(): string; getOtherThing() { return 'hello'; } } var x = new Base(); // Error, 'Base' is ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e8506f6d0538364886e3f0153c154c410965e70d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width