> Abstraction >E ncapsulation /Access Modifiers >Inheritance #include <iostream> using namespace std; class vehicle { public: vehicle() { cout<<"this is a constructor of vehicle"<<endl; } ~vehicle() { cout<<"this is a deconstructor of vehicle"<<endl; } }; class fourwheeler { public: fourwheeler() { cout<<"this is the constructor of fourwheeler"<<endl; } fourwheeler(string x) { cout<<"This is another constructor which has "<<x<<" with it"<<endl; } ~fourwheeler() { cout<<"this is deconstructor of fourwheeler"<<endl; ...
মন্তব্যসমূহ
একটি মন্তব্য পোস্ট করুন