Parivartan!!!

Come Join the S A F F R O N……B R I G A D E

Classes

Posted by Abhishek on September 4, 2006

Classes

I do not inscribe at all, I never thought that I ever would. I thought I will just be engulfed in Sports and friends all my life, interesting isn’t it. But, life doesn’t take the path we want it to, rather whatever is ordained comes in segments and we just execute those functions. Analogous to the way we do it in a class. Not the School class, not even the reserved class of an OBC or a SC/ST, but Classes in C++. Strange isn’t it??? Well, so is life just like a class. All its assets bear a resemblance to each and everyone’s life. Everyone, no matter he is Bill Gates, a hungry child in remote area of Nigeria dying of hunger, a fanatic religious worker combating or someone like Saddam Hussein who has been a fierce dictator or Hitler who was brutal and wanted power at any cost or someone as good as Indira Gandhi who showed the world that women can do almost everything at par with men.

Everyone has secrets in life, some secrets become public as and when life progresses. These secrets are known to almost everyone if they get in touch with you. Just like the hobbies and interests. Identical is the behavior of the class. All its public members are accessible outside the class. You just need a way to access it by some means. In classes we will have objects and in real life those objects being our interactions and writings (the personal details that we mention here and there, just like the resume:-D) which acquaintances may comprehend. A very few of the so called acquaintances become good friends. Slowly, the some more secrets about our life…some secrets about the present and some of the past come out enhancing access in each others life. Well, this is congruity between life and a class. All the friend classes have access to the protected members of the class, there may be some methods and some members that were made protected. Just like there are something’s that you would only like to do with some of your friends. Well, you may think what is that makes it that makes life different from a structure but congruent to a class. This is where the default mode of life, the property of being private. Very similar to a class where no one other than the class itself has access, well there are some exceptions to it in C++. However, few things one wants to keep within him and not share with anyone. I sincerely wonder about the person who got the concept of classes, might have thought over his life before coming with this whole concept which now drives almost whole of the telecom industry.

There are things in life where in our actions are impacted with the number of people with whom we do various activities. The simplest example being, organizing an event, which requires a different method to be dealt with depending upon the number of people participating in it. Somewhat similar is the concept of polymorphism or function overloading which performs the similar operation like calculating area but depends on the number of sides in the polygon. Just like building a house with single floors is quite different to making a house with 3 floors. Though, the basic operation of building the house remains the same.

There is one more aspect of life which touches the way class is. Almost everyone in life has some ideals. Just like I have my cousin brother, who has been doing certain things in life I try to imitate and sometimes do them with some exceptions. I won’t call it equivalent, but off course similar is the way we have Templates in C++. Interesting, very few people do things in life righteously that makes them idols in their fields. So, people with some goal and principles in life start imitating those and the idols just act like a template. Well, its not only limited to individuals, we have a similar situation wherein the organizations like Rashtriya Swayamsevak Sangh, Art of Living etc become a template for one to make goals in their life and follow a pattern governed by the rules that govern these organizations.

Everyone has descendents, and they inherit the properties of their ancestors. In classes, we may call the inheritance private, public or protected; similarly the life also has similar inheritance, additionally supporting multi-level inheritance too. One may become heir to the parents, grand parents or even great grand parents. In classes the coder defines the inheritance whereas life doesn’t go by our control, here the coder is the ALL MIGHTY. The ‘All Mighty’ is the one, and just like a coder may leave some bug, so does the almighty where in the life becomes dull and meaningless for some time. Just like people are asked to fix the bugs in the code and make it functional, analogous to that we are the ones who need to deal with our problems ourselves and fix the bugs in our lives. Some times its stretches a lot, but one needs to keep his calm and just concentrate on the problem.

I now have a considerable idea as to what ‘The All Mighty’ has done to create us and this whole world, our existence. As we all might have heard that there have been times in history when life was put to an end from the so called ‘pralays’. I will call them system failures. Each time the new beginning of the new species, much more intelligent than the previous one. Soon our race will end, his makes me more worried now, just wondering as to when will the system fail for us???? Or are we in a fail-safe system????

4 Responses to “Classes”

  1. pradnya said

    it feels unbelievable that this is the writer’s debut article.
    Good diction, good presentation of thoughts. Only the elaboration could have been tailored.
    But entirely; a introspective food for thought! Keep penning!

  2. Priyanka said

    I am happy that you have started writing again….though serious stuff now tahts good…reminds me of TRIVIA…in Zephyr.
    Though few simlies mentioned in the article are out of context….but its fine as it is writer’s first article after so long.Seems like you have good mastery in C++ but dear life is not C++ its JAVA;)hey…life is more complex than C++ and even more saral than C++..jokes apart tones used in the article are good.Keep the spirits up.Cheers

  3. urmilesh said

    good analogy buddy…I specially liked the part where you described the templates.

    I think you have been doing a disservice till now by not maintaining a blog….now that u have started, keep up the good work.–>

  4. Upasana Dewan said

    Hi Abhishek,
    I read ur article..that’s completely fabulous.Though we’ve been in touch for quite some dayz, couldn’t extract such meaningful things frm u..just joking :-)..and the C++ vala part is really gud 2…

Leave a comment