So I have a base class with a constructor that takes (T V). I have inherited class obj that has a constructor () I would like to create something like
base * new_list_item = new obj()
But how to pass to obj base constructor value T val; in C++?
Use the initialiser list: