In the section about inheritance in the MDN article Introduction to Object Oriented Javascript, I noticed they set the prototype.constructor: // correct the constructor pointer because it points to...
  • May 15, 2022
  • 0 Comments
Java 8 introduces default methods to provide the ability to extend interfaces without the need to modify existing implementations. I wonder if it’s possible to explicitly invoke the default...
  • May 15, 2022
  • 0 Comments
At work I’ve been tasked with turning a bunch of HTML files into a simple JSP project. It’s really all static, no serverside logic to program. I should mention...
  • May 15, 2022
  • 0 Comments
I have this in my SCSS file: .class-a{ display: inline-block; //some other properties &:hover{ color: darken(#FFFFFF, 10%); } } .class-b{ //Inherite class-a here //some properties } In class-b, I...
  • May 9, 2022
  • 0 Comments
class A: def __init__(self): print("world") class B(A): def __init__(self): print("hello") B() # output: hello In all other languages I’ve worked with the super constructor is invoked implicitly. How does...
  • May 4, 2022
  • 0 Comments