Default constructors

c++
Last edited on
default constructor: http://en.cppreference.com/w/cpp/language/default_constructor
access the functions through pointers to the class:
1
2
3
myclass myclass_obj;
myclass* myclass_ptr = &(myclass_obj);
myclass_ptr -> myclass_method();//where my_class_method() is public, non-static member function 
Last edited on
...
Last edited on
please run it through the compiler at least once before posting, some of the 8 errors are really quite basic
Topic archived. No new replies allowed.