Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@dder What do you mean?
For example in C# and Java, you can declare abstract classes by prepending the keyword 'abstract' to a class.
Abstract classes cannot have instances. But subclasses of abstract classes can.
You can use abstract classes as contracts (like interfaces) which also have default implementations for some methods.
Protected is present in C++, Java and C#. Protected members of classes can only be accessed by the class itself and by subclasses. Which is nice to have if you want to keep some implementation details accessible between class hierarchies but hidden from "outside".
Abstract classes and protected members do play together well. -
I did see that rant and find it interesting but I also can't follow what higher kinded types are 😄
Related Rants
-
InvisibleMe21"Pythonists don't comment, they write readable code." Yea, tell that to the list comprehension with three lam...
-
ddash1237The best motivation to quit Image Classification... x_x
-
NoMad8Assembly... Do I really need to say more? Okay, it's low level so there is no abstraction. All you deal with ...
No abstract classes and no 'protected' accessibility modifier in Swift.
rant
wk239