<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2826777042435999226</id><updated>2012-02-16T07:16:56.832-08:00</updated><category term='object'/><category term='oop'/><category term='programming'/><category term='c'/><category term='class'/><title type='text'>Programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://objectorientedstyle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://objectorientedstyle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Abdul Aziz</name><uri>http://www.blogger.com/profile/11980487166560300592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2826777042435999226.post-7061992614130068416</id><published>2008-10-27T11:07:00.000-07:00</published><updated>2008-10-27T11:49:46.072-07:00</updated><title type='text'>Namespace</title><content type='html'>&lt;span style="color:#ff0000;"&gt;This topic is being posted on massive request from new programmers.&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;Well I want to say that Namespace is not an Object Oriented Concept, but I will like to explain it.This concept is in different Object Oriented languages and is used frequently ,through a real world example I want to explain so that some new programmers get to know what this ' thing' is , but for sure its not an Object Oriented Concept.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#333399;"&gt;&lt;u&gt;Namespace&lt;/u&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;A namespace is hidden or an abstract container for holding logical group of unique identifers.Now this identifier can also be defined in other multiple namespaces but the meanging of that identifier can change their.&lt;br /&gt;&lt;span style="color:#6600cc;"&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#333399;"&gt;For Example&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;Jhon studies in a school X and Asif studies in school Y.. Jhon's student ID is 7121 and the sudent ID of Asif is 7121.See both of the ID's of Jhon and Asif are same but also both have the different meaning one is for Jhon and one is for Asif.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#000099;"&gt;Some C# Examples&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;span style="color:#000099;"&gt;&lt;u&gt;C# and Namespace&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="color:#000099;"&gt;Program.No.1&lt;/span&gt;&lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;using System;&lt;br /&gt;namespace ABC&lt;br /&gt;{&lt;br /&gt;class NamespaceABC&lt;br /&gt;{&lt;br /&gt;public static void main()&lt;br /&gt;{&lt;br /&gt;Console.WriteLine("In this Program a namesspace ' System ' is used.. ");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#000099;"&gt;Program.No.2&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;using System;&lt;br /&gt;namespace NestedNamespce&lt;br /&gt;{&lt;br /&gt;namespace practice&lt;br /&gt;class NesNamSpace&lt;br /&gt;{&lt;br /&gt;public static void Main()&lt;br /&gt;{&lt;br /&gt;Console.WriteLine("This is the new C# Station Tutorial Namespace.");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;&lt;u&gt;Program.No.3&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;using System;&lt;br /&gt;namespace ABC&lt;br /&gt;{&lt;br /&gt;namespace practice&lt;br /&gt;{&lt;br /&gt;class myExample1&lt;br /&gt;{&lt;br /&gt;public static void myPrint1()&lt;br /&gt;{&lt;br /&gt;Console.WriteLine("Example Number 1 calling another namespace memeber ");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;// Program start class&lt;br /&gt;&lt;br /&gt;class NamespaceCalling&lt;br /&gt;public static void Main()&lt;br /&gt;{&lt;br /&gt;practice.myExample1.myPrint1();&lt;br /&gt;practice.myExample2.myPrint2();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ABC.practice&lt;br /&gt;{&lt;br /&gt;class myExample2&lt;br /&gt;{&lt;br /&gt;public static void myPrint2()&lt;br /&gt;{&lt;br /&gt;Console.WriteLine("Example Number 2 . calling another namespace memeber");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;_______________________________________________________&lt;br /&gt;&lt;br /&gt;Also if you do not want to use the namespace using System or if you have forgot to write on the top , then you have to write the Console.WriteLine("");&lt;br /&gt;statement as,&lt;br /&gt;System.Console.WriteLine("");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2826777042435999226-7061992614130068416?l=objectorientedstyle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://objectorientedstyle.blogspot.com/feeds/7061992614130068416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2826777042435999226&amp;postID=7061992614130068416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/7061992614130068416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/7061992614130068416'/><link rel='alternate' type='text/html' href='http://objectorientedstyle.blogspot.com/2008/10/namespace.html' title='Namespace'/><author><name>Abdul Aziz</name><uri>http://www.blogger.com/profile/11980487166560300592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2826777042435999226.post-7113785485834212622</id><published>2008-10-25T09:15:00.000-07:00</published><updated>2008-10-25T15:13:01.544-07:00</updated><title type='text'>OOP</title><content type='html'>&lt;div align="center"&gt;OOP is Object Oriented Programming.&lt;/div&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#000099;"&gt;Why OOP ?&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Well it is used for reusability , and to decrease code maintainance and easily deal with the complexity of programs.&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#000099;"&gt;What is OOP ?&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Well the programming in which the programmers deal with objects.&lt;br /&gt;&lt;div align="center"&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2826777042435999226-7113785485834212622?l=objectorientedstyle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://objectorientedstyle.blogspot.com/feeds/7113785485834212622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2826777042435999226&amp;postID=7113785485834212622' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/7113785485834212622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/7113785485834212622'/><link rel='alternate' type='text/html' href='http://objectorientedstyle.blogspot.com/2008/10/oop.html' title='OOP'/><author><name>Abdul Aziz</name><uri>http://www.blogger.com/profile/11980487166560300592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2826777042435999226.post-6212691841600549684</id><published>2008-10-24T13:17:00.001-07:00</published><updated>2008-10-24T13:59:26.493-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='class'/><category scheme='http://www.blogger.com/atom/ns#' term='object'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><category scheme='http://www.blogger.com/atom/ns#' term='oop'/><title type='text'>Class , Object and C#</title><content type='html'>&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&lt;u&gt;Note :&lt;/u&gt;&lt;/strong&gt; Sorry for being late , just got to busy . You will INSHALLAH see my posts everyday.&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#000099;"&gt;Class&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt; is used as a blueprint (design) to create objects. Class is a building block which contains some functions and properties that describe some set of objects.&lt;br /&gt;&lt;br /&gt;For Example:A class of a person,a person has some properties that he/she has hair, eyes, nose and so on. Functions include that a person can walk, smell, observe.Now here class is a blueprint, through this class or blueprint we can make more persons with different attributes and functions by creating an object.When the object of a person is created you can give different attributes to him , for example&lt;br /&gt;&lt;br /&gt;OBJ1: He has brown eyes, and 5’8’’ inch height.&lt;br /&gt;&lt;br /&gt;OBJ2: He has blue eyes, with a very small height. They both are an object of class person with different propertoes.&lt;br /&gt;The following program will help you alot.The red label are namespaces&lt;br /&gt;&lt;br /&gt;Program :&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;using System;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;using System.Text;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;namespace ConsoleApplication1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;class Program&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int h;&lt;br /&gt;&lt;br /&gt;int w;&lt;br /&gt;&lt;br /&gt;int a;&lt;br /&gt;&lt;br /&gt;public void observe(int height, int weight)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if (height &gt;= (weight / 4))&lt;br /&gt;&lt;br /&gt;Console.WriteLine("Your very good in observing. ");&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;&lt;br /&gt;Console.WriteLine("Your very poor in observing. ");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void taste(int height, int weight, int age)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;if (height &gt;= (weight / 4) &amp;amp;&amp;amp; weight == (age * 2))&lt;br /&gt;&lt;br /&gt;Console.WriteLine("You know how to taste things.");&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;&lt;br /&gt;Console.WriteLine("You are very poor to taste things.");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;static void Main(string[] args)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;Program obj1 = new Program();&lt;br /&gt;&lt;br /&gt;Program obj2 = new Program();&lt;br /&gt;&lt;br /&gt;Console.WriteLine("TWO DIFFERENT PERSONS CAN HAVE DIFFERENT PROPERTIES ");&lt;br /&gt;&lt;br /&gt;Console.WriteLine("-------------------------------------------------"); Console.WriteLine("For PERSON NO 1 Does person 1 know hot to observe things ");&lt;br /&gt;&lt;br /&gt;Console.WriteLine("Enter your height ");&lt;br /&gt;&lt;br /&gt;obj1.h = Convert.ToInt32(Console.ReadLine());&lt;br /&gt;&lt;br /&gt;Console.WriteLine("Enter your weight to know how u observe");&lt;br /&gt;&lt;br /&gt;obj1.w = Convert.ToInt32(Console.ReadLine());&lt;br /&gt;&lt;br /&gt;obj1.observe(obj1.h, obj1.w);&lt;br /&gt;&lt;br /&gt;Console.WriteLine("-------------------------------------------------"); Console.WriteLine("For PERSON NO 2 Does person 2 knows hot to taste things ?");&lt;br /&gt;&lt;br /&gt;Console.WriteLine("Enter your height ");&lt;br /&gt;&lt;br /&gt;obj2.h = Convert.ToInt32(Console.ReadLine());&lt;br /&gt;&lt;br /&gt;Console.WriteLine("Enter your weight to know how u taste");&lt;br /&gt;&lt;br /&gt;obj2.w = Convert.ToInt32(Console.ReadLine());&lt;br /&gt;&lt;br /&gt;Console.WriteLine("Enter your age");&lt;br /&gt;&lt;br /&gt;obj2.a = Convert.ToInt32(Console.ReadLine());&lt;br /&gt;&lt;br /&gt;obj2.taste(obj2.h, obj2.w, obj2.a);&lt;br /&gt;&lt;br /&gt;Console.ReadLine();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2826777042435999226-6212691841600549684?l=objectorientedstyle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://objectorientedstyle.blogspot.com/feeds/6212691841600549684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2826777042435999226&amp;postID=6212691841600549684' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/6212691841600549684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/6212691841600549684'/><link rel='alternate' type='text/html' href='http://objectorientedstyle.blogspot.com/2008/10/class-object-and-c.html' title='Class , Object and C#'/><author><name>Abdul Aziz</name><uri>http://www.blogger.com/profile/11980487166560300592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2826777042435999226.post-683149243096273925</id><published>2008-10-17T10:44:00.000-07:00</published><updated>2008-10-18T13:03:54.560-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='class'/><category scheme='http://www.blogger.com/atom/ns#' term='object'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='oop'/><title type='text'>What is an object ?</title><content type='html'>&lt;strong&gt;&lt;u&gt;Real World Object&lt;/u&gt;&lt;/strong&gt; : Any 'thing' that can perform a set of activities is known as an object.&lt;br /&gt;Real World objects share two things :&lt;br /&gt;1.state (properties)&lt;br /&gt;2.behaviours(functions)&lt;br /&gt;Lets see a real wolrd example : Your car its an object because it can perform set of activities, your car has certain properties and performs certain functions.Your dog,television and bicycle are also objects with some state (properties) and behaviour(functions).&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Object in Programming terms:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;An object is an instance of a class, here comes a question what is a class.&lt;br /&gt;Well class is simply a presentation of object.&lt;br /&gt;&lt;br /&gt;You we will see more topics later this is just a start.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2826777042435999226-683149243096273925?l=objectorientedstyle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://objectorientedstyle.blogspot.com/feeds/683149243096273925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2826777042435999226&amp;postID=683149243096273925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/683149243096273925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2826777042435999226/posts/default/683149243096273925'/><link rel='alternate' type='text/html' href='http://objectorientedstyle.blogspot.com/2008/10/what-is-object.html' title='What is an object ?'/><author><name>Abdul Aziz</name><uri>http://www.blogger.com/profile/11980487166560300592</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
