Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

abstract-class

Multiple inheritance workarounds

December 14, 2023 by Tarik

Declaring a constructor on the same interface as the instance members doesn’t really make much sense — if you’re going to pass in a type dynamically to use in a constructor, it’s the static side of the class that would be restricted. What you would want to do is probably something like this: interface Colorable … Read more

Categories abstract-class Tags abstract-class, multiple-inheritance, typescript Leave a comment

When and Why to use abstract classes/methods? [closed]

March 8, 2023 by Tarik

I know the basic use of abstract classes is to create templates for future classes. But are there any more uses of them? Not only can you define a template for children, but Abstract Classes offer the added benefit of letting you define the functionality that your child classes can utilize later. You could not … Read more

Categories abstract-class Tags abstract-class, abstract-methods Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa