OOCP3-3

//BCA Support //www.bcasupport.xyz #include <iostream.h> #include <conio.h> class abstract { public: virtual void func()=0; }; class child: public abstract { public: void func() { cout<<"\nChild class function!"; } }; int main() { clrscr(); child c1; c1.func(); getch(); return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.