Home > Back-end > About abstract class instantiation
About abstract class instantiation
Time:10-07
I have a job, ListInterface. All private functions in h, then in BrowserHistoryInterface. H contained in the header file, one of the functions of virtual void copyCurrentHisotory (ListInterface& Destination)=0;
Really confused how to use this function, Ask the man answer, thank you!
CodePudding user response:
Pure virtual function, need to inherit class writing implement, Class a { Public: Virtual void fun (void)=0; }; The class aa: public a { Public: Virtual void fun (void) {cout<" Aa "& lt; };