For the makefile formation I have used the following commands :
g++ -c readFile1.cpp
g++ -c prof.cpp
g++ -c student.cpp
g++ -c user.cpp
g++ -c User_utility.cpp
g++ -c Borrow.cpp
g++ -c journal_sub.cpp
Executable object code command would be :
g++ -o file readFile1.o prof.o student.o user.o User_utility.o user.o Borrow.o journal_sub.o
Running the object code :
./file.exe