//Main.cpp:
#include <iostream>
#include "Daughter.h"
#include "Mother.h"
using namespace std;


int main()
{


Mother obj;
obj.printthings();




Daughter non;
non.printthings();
}

//Mother.h


#ifndef MOTHER_H
#define MOTHER_H




class Mother
{
    public:
        Mother();
        ~Mother();
        void printthings();
};


#endif // MOTHER_H

//Mother.cpp
#include "Mother.h"
#include<iostream>
#include "Daughter.h"


using namespace std;
Mother::Mother()
{
    //ctor
}


Mother::~Mother()
{
    //dtor
}


void Mother::printthings()
{




    cout<<"Inheritance!"<<endl;


}


//Daughter.h
#ifndef DAUGHTER_H
#define DAUGHTER_H


class Daughter:public Mother
//The error is here.It says "Expected class name before { token"
{
public:
    Daughter();

};

#endif // DAUGHTER_H

//Daughter.cpp


#include "Daughter.h"
#include "Mother.h"
#include<iostream>
using namespace std;
Daughter::Daughter()
{
    //ctor
}

The error message is expected class name before { token in the Daughter.h file.
Not sure why!
Thanks for the help.