Hi guys,I'm new to C++, I have written a code which includes inheritance and I have to use the "Arguments Constructor(child class)" to pass certain values to the parent class. Bad luck, Its not getting any better, the constructor won't pass the values. The code is down here, can anyone plz tell me whats wrong here???
well,my question is, I want to use parent argument constructor in the child argument constructor, thats all what I did up there, what your links show,thats same as I did, I wana use argument constructor, and in my rpogram,,, the compiler does not show any error, the problem is that the program doesnt actually provides the correct output, it a logical error, plz if u point it out??
in the book,Object Oriented Programming in C++ by Robert Lafore, it was written that
B() { A(); }
would work well but its not recommended due to complex reasons so I thought that it might work here too.. didnt know that this program was so complex that it'll need complex details :3 ;)
and, thanks very much keskiverto, ur info solved my problem, :)
( though, in today's exam, I did this mistake, lol :D )