Unable to access members of same class, giving seg fault

Printable View