Wednesday 7 December 2011

An insight into Object

Hi,
I am Pankaj Dhapola, I am Currently working as SW test automation engineer.
I intend to write this blog for novice people in the world of SW test Automation.

A little about programming.

For me programming is irrespective of Language unless and until you know 3 things
1. What you want to achieve by writing piece of code.
2. Are syntax clear with what language you use.
3. and the kind of logic you use to achieve your goal.

Well the best language that I came across is JAVA. Imagine the creation of object inside a compiler.
For those who think what the heck is Object? here it, basically in any programming language their are two things
Object data and Object methods.
Now Object data is data\properties\attributes related to Object and Object methods are functions\actions\bundled of code which can interact with other object\environment and also are ways to read or modify data related to object.

example consider I create an Object called Man
Now data related to object would be
like
int NoOfHand
int NoOfFingers
String NameOfMan

and methods inside an Object Man would be

getLegsCount()
getNoOfFingersInLegs()
getNameOfMan()
ableToRun()
run()
runFast()


So, you decide, while programming what method and data of Object you would define.
Also what the data and methods available while you use an inbuilt Object.
For detailed understanding click here

I admire Java because its a very disciplined language, their is no way you can illegally exploit an Object. For every thing, their is a strict law\rule  to access object, m talking about the internal architecture of compiler.

Also VB script is a beautiful,  of course every language has its own pro's and con's.
BTW VB  is not an OOP's based language, it's Object based language that means you will be provided various objects\libraries bundled, you just have to use them.

I end this blog with these note and shall come up with many new things.


2 comments:

Anand said...

Very Nice Article Mr. Pankaj, seems very informative would like to have more such articles from you...

Pankaj Dhapola said...

Sure Anand, I will try my best.