When to use 'raise NotImplementedError'??

Is it to remind yourself and your team to implement the class correctly? I don't fully get the use of an abstract cl...

Semicolon after class declaration braces?

In C++ classes, why the semi-colon after the closing brace? I regularly forget it and get compiler errors, and hence...

Why do we assign a parent reference to the child object in Java??

I am asking a quite simple question, but I am bit confused in this. Suppose I have a class Parent: public class Pa...

Why do I get an error instantiating an interface??

I have a class and an interface, and when I try to instantiate the interface, I get an error: Cannot create an i...

Is VBA an OOP language, and does it support polymorphism??

I am actually working on my first VBA project. (come from C++) I would like to improve an existing VBA project used...

What is the __del__ method, How to call it??

I am reading a code. There is a class in which __del__ method is defined. I figured out that this method is used to ...

What is polymorphism in Javascript??

I have read some possible article I could found on the internet on polymorphism. But I think I could not quite grasp...

Error at constructor : Expected an identifier??

I am working with a bunch of classes with composition and I keep getting this error (Expected an identifier) when I ...

How to access variables in another package in java??

I am trying to access variables in another package in java, I tried some code: The first package contains two class...

What does it mean when one uses “class” as a datatype??

When using primitive datatypes, like char,int etc we know a number of bytes according to datatype are being reserved...

What does 'GET OR SET ACCESSOR EXPECTED' mean??

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using...