Day 8 - My next class


One class is done let's move to the next one.

My new class will look like something like this:
class MyNext
 {
  public:
   MyNext( ){}

   void work( int   P_a ){ std::cout << "Working... " << std::endl; }
   void run(  float P_b ){ std::cout << "Runing... " << std::endl; }
 
  private:
   int a;
   float b;
 };
Learning from mistakes while working on MyClass I want repeate them again on MyNext.
It goes like this:
template < typename N_value_int, typename N_value_float >
 class MyNext
  {
   public:
    MyNext( ){}

    void work( N_value_int   P_a ){ std::cout << "Working... " << std::endl; }
    void run(  N_value_float P_b ){ std::cout << "Runing... " << std::endl; }
 
   private:
    N_value_int a;
    N_value_float b;
  };
Compiler knowes what to do.
I'll change template's parameters as neccessary.

All bugs are in one place.
If they are not there, there are no bugs.