Spread the love

Excited to know what’s the tale behind the title?. I believe at the end of this blog justification to the title would have been done…:-) Today our story revolves around OOPS. I had OOPS in my fifth semester. It was the time when my interest towards programming was in budding stage.

So I and one of my friends had decided to join a computer center to learn C++. At that time we dint have easy online access like now. And also I wasn’t with a computer at that time. So computer center was the only option to look over for another computer. The center name was Radian I guess. I don’t know whether it is even still functional. I got a wonderful teacher in that center .Her name was Sowmya. She was the one who first taught me about classes and objects. The example she had given was like, consider the blueprint of the house as class and the object as the house itself. With the same blue print we can build ‘n’ number of houses.

See how powerful it is, I still remember that example. But when I happened to do a video about classes and objects for GUVI,I was in break to take care of my kid. So i had got most connected to kitchen rather than anything else.

So whatever video I had done at that time , carries the aroma of my kitchen 🙂 Now we’ll come to our title reason, I see our idly aaya is the founder of classes and objects. See, idly plate is the class .It defines the structure of our idly and the idlies are our objects.

So like our film directors I made justice to the title by referring idly aaya in this line 🙂

idly kadai

Now coming to the technical part, class is a user defined data type. Here comes the question what is data type and what is data structure?.To make people believe that I am still connected to kitchen I will give examples from my kitchen itself. For example we can consider tumbler, plates, container etc… everything is a datatype .Each serves different purpose. Small tumbler can be considered as integer, bigger tumbler as float,Jug as double .They all belong to same category and the differentiating factor is the quantity they can hold.But plate and tumbler we can compare as integer and string. Plate is for eating something and tumbler is for drinking.They serve different purpose. Now here comes the Hero intro for our story.

Picturize the vessel stand in your home. vessel stand

can you tell what data type it is ,this is none other than our structure and class. To tell correctly this is object and the design of this stand is class.

We are having integer(tumbler),string(plates),byte(spoons) etc…. in the same stand. All these are analogies purpose only don’t dig too much 🙂 Ok Ok like Keladi Kanmani Radhika asking to SPB ,”moochu vidama padrenu soneenga” ,u people are asking what happened to data structure. Yes I will explain it now.

I have always found trouble in finding out some ingredients when I work in other people’s kitchen. With all containers looking alike it is difficult to identify what is inside them. Arranging the containers in a way it is easy for anyone to take anything is data structure, way of organizing data. If we keep everything in a single row then its an array.

steel box

Mom never searches for anything and knows correctly which one holds what .But if it happens that I have to do look out for something, I do a linear search to find the ingredient I need. But if I remember someway that mom usually keeps them in first row ,I can do a binary search then ignoring remaining racks. So like these examples , OOPS is there in every walk of our life. Even the way we arrange our dresses in wardrobe is a data structure. We arrange it in such a way that it will be easy for us to search and keep dresses.


See you all soon in next blog….. Before that hit the like button if you really like this post:-) or else also you can hit like ..no restrictions -Sridevi Arunprakash For more idly ideas.. 😛 Visit us at www.guvi.in

Leave a Reply