+ 3
I have 3 question about C++(continue)
class Animal{ public: virtual void bark()=0;// I confused at here. Why we assign to function a 0? }; class Dog:Animal{ public void bark(){ cout<<"Woof"; } };
3 Antworten
+ 9
I never thought of why tbh.
https://stackoverflow.com/questions/2156634/why-is-a-pure-virtual-function-initialized-by-0
+ 8
tbh - "To be honest"
+ 4
Thank you for answer. I am wondering what is the meaning of tbh? My English is not well.