Recent content by walnutTree

  1. W

    How can I override my instance variable of array type

    Hi guys, Sorry for my late reply I was busy. Thanks your answers or suggestions, these were quite useful. If I remove the getLabels() line from the Parent's constructor and initialize it in the Child constructor, it will works properly. Parent: public abstract class Parent{...
  2. W

    How can I override my instance variable of array type

    Hi All, Sorry to bother anyone, but I have run into a inheritance problem. I have a base class which contains a member variable of array type, and an abstract method. Subsequently I created a sub class which derived from the base class. And I provide implementation for the abstract methods...
  3. W

    C/C++ How could I call a base class virtual function from the derived class ? (C++)

    thanks for clearing things up, it was a rookie mistake... and the slapping took place as well:)
  4. W

    C/C++ How could I call a base class virtual function from the derived class ? (C++)

    Dear All, I have got a subclass (Panda), which inherits a Print function from the base class (Bear). I'd like to be able to call the base class's function from the subclass. But my complier gives me the following error message: In member function `virtual void Panda::print(char)'...
  5. W

    C/C++ How to calculate rotation, divergence in C/C++

    Dear Experts, I started to look deeper into the electromagnetic fields. So I would like to write a simple code in C/C++, which is capable of calculating the divergence or rotation of the vector fields. Could someone helps me please, to get this started? How to illustrate partial...
Back
Top