Skip to content

Add Method Inheritance & Abstract-like Method (mean like Abstract of class here) #117453

Answered by huoyaoyuan
amrmostafa800 asked this question in Ideas
Discussion options

You must be logged in to vote

This is a C# language topic and should go to https://github.com/dotnet/csharplang/discussions .

abstract means polymorphic - external caller can get overridden behavior by specifying the base method. This proposal doesn't show polymorphic. Instead, it's about utility methods that serves as a building block.

The idea isn't a general approach. What about a method requires multiple such helpers? var a = B(); is very clear approach and perfectly extensible.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amrmostafa800
Comment options

Answer selected by amrmostafa800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants