PropellerAds

Showing posts with label what. Show all posts

What is Data hierarchy

Data hierarchy

Data hierarchy is the step by step representation of complex data in different level starting from basic bits to highest level files.

We will discuss in this post how this hierarchy is formed.
 Suppose we have a excel file in which there are the names of some students and their marks in a subject.
The file is the highest level of data-hierarchy . Next to it is the record a person name together with its marks is referred to as records. Inside record the name of the student will be a field. A field is combination of characters. An individual character will then be represented by a byte. That byte will be combination of a bit. The picture below will make the idea clear


Thursday, 9 October 2014
Posted by Unknown

what is object oriented programming?

Introduction to object oriented programming.
Basically all the programming languages are of two types either:
·         Structured Oriented or
·         Object Oriented.
Today most of the languages used are object oriented like java as2.0,  as3.0 and C++.
So the question arises when we say object oriented programming what we mean by it or what is object oriented programming. This topic will clear the basic the idea and introduce you to the basic concept of it.
Object Oriented Programming.
In object oriented programming we make different objects, give them some instance names, and then call them by their instance name to change some of their attributes to perform a function.
Didn’t Understand??
This example will make the idea clear.
Suppose we created a robot as shown below.



We will select this robot and make this an object. Now the next step is to give it a name that is instance name. We can give any instance name to it with some restriction which I may explain in any other post. So , suppose any name for example we gave this robot instance name of robo . Now in our programming if we want the robot to do anything we can simply call it by its instance name robo.
Our object will have some attributes like its position from x axis, y axis, its rotation and many other. Suppose we want to move robot forward when we press right key. We can do this by revealingly increasing its distance from x-axis.
So our pseudo-code or general algorithmic form for that will be

While (right key){
robo x-axis increase by 1
}  


So in this example we are calling an object and changing its attributes to do required task this type of programming is called object-oriented programming.
Posted by Unknown
PropellerAds
PropellerAds

Popular Post

Powered by Blogger.

- Copyright © BSCS -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -