Code 1: OOPS, class or object.

OOPS-class-object @Image courtesy of digitalart /

Code 1: OOPS, class or object.

Welcome to CodeSpread!

“I am not a computer science graduate”

Yes! This was my innocent submission when i started my career in IT.

I must admit it now that i did use this as an excuse and so do many people to avoid responsibility. I was searching for short-cuts and mugging up things to complete the work assigned to me. But between, i felt that this is not a long-term strategy and i might get entrapped sometime. Recession can make you learn everything boss!!

Later, I wanted to learn but instead of trying very hard,i was not able to understand anything. One of my friend used to teach me and still i was not able to meet the expectation. In sometime, i realized that why i was not able to understand anything. It’s because I was not able to relate to its existence.

When someone used to explain a simple question “What is a class?” , I could not resist to ask  why we need it and where can i find it. I know few people might think that I am complete dumb but they will certainly agree that when we don’t ask basic/simple question,no matter how silly they seem, we are just inviting bigger problems ahead.

Even the same reaction i have seen from people explaining a ‘class’.

I am not saying that i am a good programmer but after all this, i devised my own way to understand the concepts.

I started with the dictionary meaning of OOP [object-oriented programming] . We are talking about a programming concept whose basis is object. And we know that we all are objects, may be living or non-living so the origin of this language is from our environment only.

We also know the dictionary meaning of class and in real life, I am a living object which might belong to human class, middle class, gentlemen class, software developer class etc. I can have attributes and behavior of n number of class.

So, if i try to define class then i can say its a generic structure or a generic template which defines some attributes and behavior. For example, Middle class can have fields like monthly expenditures,monthly savings etc. and behavior like paybill(), dropandpickchildrenfromschool() etc.

Middle class doesn’t have an existence on its own. I am a living object exist as a middle class person in this world and I give meaning to all the fields and perform the behavior associated with middle class.

I hope this article will help someone like me.

Author: hershey

A passion for knowledge drives me to do programming, A passion for programming drives me to create something different, A passion for creation drives me to spread the knowledge.

Share This Post On


  1. nice superb explaination

    Post a Reply
  2. thanks for the tutorial
    I am having a problem.
    The feature “Create SQL server database” isn’t available , I can’t select it.
    Can you help, please ?

    Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

More from CodeSpread:

  • Interview : a question mark?Interview : a question mark?I like going for interviews for two simple reasons: I found that this is the simplest way to remain updated with the latest knowledge. If we look at the IT trend, daily new software are gett...
  • Time Out: Not a Technical postTime Out: Not a Technical postTaking my time-out from technical world for once and sharing a regular joke in the form of  this comic with you. There is no harm in showing funny side also sometimes. wat say!!
  • C#: My experience with const keywordC#: My experience with const keywordThere are numerous post on internet about 'what is const keyword in .net' or 'what is the difference between const keyword and read only' and I must say many might have already mugged it up like me...
  • Attitudes of a Great Software Developer !!!Attitudes of a Great Software Developer !!!A post by guest author Rajaraman Raghuraman. This post was originally published in AgileDevTest Blog. Software development is an art, not just a science.  You can learn all the tech...
  • Java script rendered content is not crawl able.Java script rendered content is not crawl able.There was a requirement to include 'ratings and reviews' plugin on the product pages of our website which is provided by a third party. We included a javascript library and some code as provided by...
  • “Hour of Code” is the coolest event around the corner.“Hour of Code” is the coolest event around the corner.The Hour of Code is a one-hour introduction to computer programming, designed to demystify code and show that anyone can learn programming. Hour of Code is planned to take place any time during CS ...
  • Useful ‘ref’ and ‘out’ parametersUseful ‘ref’ and ‘out’ parameters It took me some time to realize the real potential of ref and out keywords, till the time I experience a condition which could only be simplified by implementing ref and out keyword. Lets st...
  • Thought : User Freedom-Customized ContentThought : User Freedom-Customized ContentThis article analyzes the gap between our expectations from internet content and how it is being served to us. We are information hungry people and Internet is full of information but still not ...