When you are into IT related topics one things you hear a lot is the word Object.
You must have heard something about Object Oriented Programming and that the concept has totally changed the way of programming which is true. Nowadays most of the application are developed by using Object Oriented Methodologies and it’s very important to understand about object.
This blog that I have created is about Object Orientation and how to understand an Object. For this topic you don’t need any Programming knowledge and even a person which is not from IT sector can understand.
what is this object?? What does it do?? How does it Revolution-rises the programming
So, what is an object? In some books you might found the definition like object is an instance of Class. Now after reading that definition you must be thinking what the hell is this Class?? Is it some thing our lecturer makes us sit and listen to the boring lectures. Well that was the first impression on a normal person who doesn’t know about programming. And I don’t know what with the academic books, they always find out the way to confuse us with some new definition all the times.
To understand about Objects first it is very essential to understand about the previous ways of programming. By previous I didn’t mean the assembly language though it comes under the same category. The old way of programming is call the procedural based programming such as C.
These languages are based on the concept that what a program should do and how would you expect a program to run. For this you have to provide step to step procedure to take steps and these steps can be further divided into sub modules. for e.g. in a student teacher relationship if we emphasis on developing a program based on the functions like teaching of a teacher where students and teacher are the constraints then the process is procedural process.
This approach had several shortcomings while compared to real world application such as in if we follow this approach the various functions like evaluation which is done by the teacher for every student will add many complexities to the problem.
The new approach used is OO methodologies in which rather then giving emphasis on procedure we give more importance to the real life object. for e.g if we take our previous example the students and teacher are the real world objects and teacher can have functions like teaching and evaluating as well and students can also have their own functionality.
Classes and Objects
Now lets get into the previous definition of object that we read. Now we have understood that we emphasis on real world objects rather then the functions, then what do we do with the functions and how are they implemented. These functions are kept within a Class. A class contains the members and member functions of an Object on which the operation is supposed to perform. So the functions like teaching and evaluation are kept inside a class. And that is what is meant by Object is an instance of Class as it provides the type definition of an Object.
Now, I think you have got some idea about Object. Don’t get afraid of it and use this amazing approach instead of traditional one to make your life more easy.