Author Topic: Derived class implementation file has methods out of order  (Read 1660 times)


  • Senior Community Member
  • Posts: 300
  • Hero Points: 23
Using Beta 2, I derived a C++ class in a header file and when I typed the opening brace, I got the dialog prompting me for which methods to implement. I selected all of the methods, and left the choice to put prototypes in the .h file, and definitions in the .cpp file. This worked, but the .cpp file has the method definitions in reverse order to what they are in the .h file. That is, if my .h file looks like:
Code: [Select]
class DerivedClass : public IBaseClass
    virtual void FnA();
    virtual void FnB();
    virtual void FnC();

the .cpp file looks like:
Code: [Select]
virtual void DerivedClass::FnC() {}
virtual void DerivedClass::FnB() {}
virtual void DerivedClass::FnA() {}

It would be nice if the methods were in the same order in both files.


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3035
  • Hero Points: 446
Re: Derived class implementation file has methods out of order
« Reply #1 on: May 03, 2013, 01:05:47 pm »
I'm going to file a defect about this.  I looked into this a long time ago and I agree it is annoying.