Skip to main content

Posts

USE OF BASE CLASS

A program to show the use of vitual base class #include #include class A { protected: int a; public: void seta() { a=10; } }; class B:virtual public A { protected: int b; public: void setb() { b=20; } }; class C:virtual public A { protected: int c; public: void setc() { c=30; } }; class D:public B,public C { private: int d; public: void setd() { d=40; } void display() { cout<<"The Value Of A is="<

USE OF BASE CLASS

A program to show the use of vitual base class #include #include class A { protected: int a; public: void seta() { a=10; } }; class B:virtual public A { protected: int b; public: void setb() { b=20; } }; class C:virtual public A { protected: int c; public: void setc() { c=30; } }; class D:public B,public C { private: int d; public: void setd() { d=40; } void display() { cout<<"The Value Of A is="<

Leadership Skills

Yesterday my father advised me to read Develop your leadership skills . I started reading today and I couldn't stop myself in between. It is a great book written by John Adair. Leadership skills have now been universally recognised as a key skill It is possible to develop your own abilities as a leader. All this book is about How to do that. I just want to share few points that I found intresting about leadership Nobody can teach you leadership. It is something you have to learn. You learn principally from experience. But experience or practice has to be illuminated by principles or ideas. A) PERSONALITY AND CHARACTER : Personality and Character are important qualities of leadership. A Leader should possess, exemplify and perhaps even personify the qualities expected or required in his working group. Without it he will lack credibility. (Incidentally, here is one of the first differences between leaders and managers: the latter can be appointed over others in a hierarchy rega