Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sample ptr and obj ex
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <stdio.h> using namespace std; class parent { public: void parentname(); }; void parent::parentname() { cout<<"name:::::"<<endl; } int main() { std::cout << "Hello, world!\n"; parent pobj; pobj.parentname(); parent *pobjptr = new parent(); pobjptr->parentname(); }
run
|
edit
|
history
|
help
0
hangman
move swap
No UD
Integral constant
Computing the factorial of an integer using factorial and iteration
c++ pure apstraction
problem_soultion2
base call virtual
additional layer of indirection
!Enum