<?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:blogger='http://schemas.google.com/blogger/2008' 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-3538385277721571366</id><updated>2024-12-18T19:16:36.312-08:00</updated><category term="26/11"/><category term="Access Modifiers"/><category term="Bombay"/><category term="C#"/><category term="DELETE"/><category term="Joined Hands Together"/><category term="Mumbai"/><category term="Mumbai Terror Attack"/><category term="SQL"/><category term="TRUNCATE"/><category term="Terror"/><category term="internal"/><category term="private"/><category term="protected"/><category term="protected internal"/><category term="public"/><title type='text'>Sh00nyaa-Zer0</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sh00nyaa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538385277721571366/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sh00nyaa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>viren</name><uri>http://www.blogger.com/profile/17737869883538725172</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXtbFyua1ly5g77kT1diE6CQC1zziYFMJk8stZlvlJsv0f-FDbw7fz9tEf7Gv6bK_WZuTk21HjmCVyUhVCGG4ZOl3YvB9kW3ZqxjRGKDTgQdGDsvfE8ZSxBYjbkRoPDI/s220/DSC01357.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3538385277721571366.post-8514807017218656218</id><published>2010-08-21T07:38:00.000-07:00</published><updated>2010-08-21T09:43:49.922-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Access Modifiers"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="internal"/><category scheme="http://www.blogger.com/atom/ns#" term="private"/><category scheme="http://www.blogger.com/atom/ns#" term="protected"/><category scheme="http://www.blogger.com/atom/ns#" term="protected internal"/><category scheme="http://www.blogger.com/atom/ns#" term="public"/><title type='text'>Access Modifiers (OOPS)</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;br /&gt;The type or member can be accessed by any other code in the same assembly or another assembly that references it.&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;br /&gt;The type or member can only be accessed by code in the same class or struct.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;br /&gt;The type or member can only be accessed by code in the same class or struct, or in a derived class.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;internal&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;br /&gt;The type or member can be accessed by any code in the same assembly, but not from another assembly.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;protected internal&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;br /&gt;The type or member can be accessed by any code in the same assembly, or by any derived class in another assembly.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;Class and Struct Accessibility&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Classes and structs that are declared directly within a namespace (in other words, that are not nested within other classes or structs) can be either public or internal. Internal is the default if no access modifier is specified. &lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;Derived classes cannot have greater accessibility than their base types. In other words, &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;you cannot have a public class &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;code&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;B&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; that derives from an internal class &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;code&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;A&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;. &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;If this were allowed, it would have the effect of making &lt;/span&gt;&lt;span class=&quot;code&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;A&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; public, because all protected or internal members of &lt;/span&gt;&lt;span class=&quot;code&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;A&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; are accessible from the derived class.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;LW_CollapsibleArea_TitleDiv&quot;&gt;&lt;span class=&quot;LW_CollapsibleArea_Title&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;Class and Struct Member Accessibility&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;a id=&quot;sectionToggle1&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;Class  members (including nested classes and structs) can be declared with any  of the five types of access. &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;Struct members cannot &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;be declared as  &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;protected&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; because &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;structs do not support inheritance&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;. &lt;/span&gt;&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;you cannot have a public method &lt;/span&gt;&lt;span class=&quot;code&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;M&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; that returns a class &lt;/span&gt;&lt;span class=&quot;code&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;C&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; unless &lt;/span&gt;&lt;span class=&quot;code&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;C&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; is also public. Likewise, you cannot have a protected property of type &lt;/span&gt;&lt;span class=&quot;code&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;A&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; if &lt;/span&gt;&lt;span class=&quot;code&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;A&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; is declared as private.&lt;/span&gt;&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;Destructors cannot have accessibility modifiers.&lt;/span&gt;&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;color:Green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;// public class:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; Tricycle  &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:georgia;font-size:16px;&quot;&gt;{     &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:Green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// protected method:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;     &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; Pedal() { }      &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:Green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// private field:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;     &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;private&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; wheels = 3;      &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:Green;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;// protected internal property:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;     &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;internal&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; Wheels      &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;{          &lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;get&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:Blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt; wheels; }      &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:georgia;font-size:16px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;}   &lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;b&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;Note&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;The protected internal accessibility level means protected OR internal, not protected AND internal. In other words, a protected internal member can be accessed  from any class in the same assembly, including derived classes. To limit accessibility to only derived classes in the same assembly, declare the class itself internal, and declare its members as protected.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;div class=&quot;LW_CollapsibleArea_Container&quot; xmlns=&quot;&quot;&gt;&lt;div class=&quot;LW_CollapsibleArea_TitleDiv&quot;&gt;&lt;span class=&quot;LW_CollapsibleArea_Title&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:large;&quot;&gt;Other Types&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;a id=&quot;sectionToggle2&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/a&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Interfaces declared directly within a namespace can be declared as public &lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;or  internal and, just like classes and structs, interfaces default to  internal access. Interface members are always public because the purpose  of an interface is to enable other types to access a class or struct.  No access modifiers can be applied to interface members.&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Enumeration members are always public, and no access modifiers can be applied.&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Delegates behave like classes and structs. By default, they have internal access  when declared directly within a namespace, and private access when  nested.&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Reference :&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:monospace;font-size:13px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;display: inline !important; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:georgia;&quot;&gt;&lt;div class=&quot;LW_CollapsibleArea_Container&quot; xmlns=&quot;&quot; style=&quot;display: inline !important; &quot;&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: inline !important; &quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms173121.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms173121.aspx&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sh00nyaa.blogspot.com/feeds/8514807017218656218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sh00nyaa.blogspot.com/2010/08/access-modifiers-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538385277721571366/posts/default/8514807017218656218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538385277721571366/posts/default/8514807017218656218'/><link rel='alternate' type='text/html' href='http://sh00nyaa.blogspot.com/2010/08/access-modifiers-c.html' title='Access Modifiers (OOPS)'/><author><name>viren</name><uri>http://www.blogger.com/profile/17737869883538725172</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXtbFyua1ly5g77kT1diE6CQC1zziYFMJk8stZlvlJsv0f-FDbw7fz9tEf7Gv6bK_WZuTk21HjmCVyUhVCGG4ZOl3YvB9kW3ZqxjRGKDTgQdGDsvfE8ZSxBYjbkRoPDI/s220/DSC01357.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538385277721571366.post-2294363676055796264</id><published>2010-07-26T15:25:00.000-07:00</published><updated>2010-07-26T21:53:16.180-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DELETE"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="TRUNCATE"/><title type='text'>What is the difference between DELETE and TRUNCATE</title><content type='html'>&lt;span style=&quot;font-weight:bold;&quot;&gt;SQL Delete Statement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The DELETE Statement is used to delete rows from a table.&lt;br /&gt;&lt;br /&gt;The Syntax of a SQL DELETE statement is:&lt;br /&gt;&lt;br /&gt;DELETE FROM table_name [WHERE condition];&lt;br /&gt;&lt;br /&gt;table_name -- the table name which has to be updated.&lt;br /&gt;NOTE:The WHERE clause in the sql delete command is optional and it identifies the rows in the column that gets deleted. If you do not include the WHERE clause all the rows in the table is deleted, so be careful while writing a DELETE query without WHERE clause.&lt;br /&gt;&lt;br /&gt;For Example: To delete an employee with id 100 from the employee table, the sql delete query would be like,&lt;br /&gt;&lt;br /&gt;DELETE FROM employee WHERE id = 100;&lt;br /&gt;&lt;br /&gt;To delete all the rows from the employee table, the query would be like,&lt;br /&gt;&lt;br /&gt;DELETE FROM employee;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;SQL TRUNCATE Statement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The SQL TRUNCATE command is used to delete all the rows from the table and free the space containing the table.&lt;br /&gt;&lt;br /&gt;Syntax to TRUNCATE a table:&lt;br /&gt;&lt;br /&gt;TRUNCATE TABLE table_name;&lt;br /&gt;&lt;br /&gt;For Example: To delete all the rows from employee table, the query would be like,&lt;br /&gt;&lt;br /&gt;TRUNCATE TABLE employee;&lt;br /&gt;&lt;br /&gt;Difference between DELETE and TRUNCATE Statements:&lt;br /&gt;&lt;br /&gt;DELETE Statement: This command deletes only the rows from the table based on the condition given in the where clause or deletes all the rows from the table if no condition is specified. But it does not free the space containing the table.&lt;br /&gt;&lt;br /&gt;TRUNCATE statement: This command is used to delete all the rows from the table and free the space containing the table.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;SQL DROP Statement:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The SQL DROP command is used to remove an object from the database. If you drop a table, all the rows in the table is deleted and the table structure is removed from the database. Once a table is dropped we cannot get it back, so be careful while using RENAME command. When a table is dropped all the references to the table will not be valid.&lt;br /&gt;&lt;br /&gt;Syntax to drop a sql table structure:&lt;br /&gt;&lt;br /&gt;DROP TABLE table_name;&lt;br /&gt;&lt;br /&gt;For Example: To drop the table employee, the query would be like&lt;br /&gt;&lt;br /&gt;DROP TABLE employee;&lt;br /&gt;&lt;br /&gt;Difference between DROP and TRUNCATE Statement:&lt;br /&gt;&lt;br /&gt;If a table is dropped, all the relationships with other tables will no longer be valid, the integrity constraints will be dropped, grant or access privileges on the table will also be dropped, if want use the table again it has to be recreated with the integrity constraints, access privileges and the relationships with other tables should be established again. But, if a table is truncated, the table structure remains the same, therefore any of the above problems will not exist.&lt;br /&gt;&lt;br /&gt;Link For Reference:&lt;br /&gt;&lt;br /&gt;http://beginner-sql-tutorial.com/sql-delete-statement.htm&lt;br /&gt;http://www.sql-server-performance.com/faq/delete_truncate_difference_p1.aspx&lt;br /&gt;http://codebetter.com/blogs/raymond.lewallen/archive/2005/05/09/62960.aspx&lt;br /&gt;http://msdn.microsoft.com/en-us/library/ms177570.aspx</content><link rel='replies' type='application/atom+xml' href='http://sh00nyaa.blogspot.com/feeds/2294363676055796264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sh00nyaa.blogspot.com/2010/07/what-is-difference-between-delete-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538385277721571366/posts/default/2294363676055796264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538385277721571366/posts/default/2294363676055796264'/><link rel='alternate' type='text/html' href='http://sh00nyaa.blogspot.com/2010/07/what-is-difference-between-delete-and.html' title='What is the difference between DELETE and TRUNCATE'/><author><name>viren</name><uri>http://www.blogger.com/profile/17737869883538725172</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXtbFyua1ly5g77kT1diE6CQC1zziYFMJk8stZlvlJsv0f-FDbw7fz9tEf7Gv6bK_WZuTk21HjmCVyUhVCGG4ZOl3YvB9kW3ZqxjRGKDTgQdGDsvfE8ZSxBYjbkRoPDI/s220/DSC01357.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3538385277721571366.post-383606778968251429</id><published>2009-11-26T14:19:00.000-08:00</published><updated>2010-08-15T11:54:00.971-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="26/11"/><category scheme="http://www.blogger.com/atom/ns#" term="Bombay"/><category scheme="http://www.blogger.com/atom/ns#" term="Joined Hands Together"/><category scheme="http://www.blogger.com/atom/ns#" term="Mumbai"/><category scheme="http://www.blogger.com/atom/ns#" term="Mumbai Terror Attack"/><category scheme="http://www.blogger.com/atom/ns#" term="Terror"/><title type='text'>India’s two-minute silence enough to mute Thackerays and Company......</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKF2Uu1ApxAEQ3KPMKmJ-pXGCW7E_Gsjrzbrr4Z6CxPJg9oU9cNBWC9qm-WJI9XqU__ulBiLYmR2RajzAY-hOEPuf373L3Mnz4pXAefUj8XLhPEmgdV-qEkMbm1vh3RgqOMvILmKZn3IQ/s1600/2611.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0px 10px 10px 10px;cursor:pointer; cursor:hand;width: 133px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKF2Uu1ApxAEQ3KPMKmJ-pXGCW7E_Gsjrzbrr4Z6CxPJg9oU9cNBWC9qm-WJI9XqU__ulBiLYmR2RajzAY-hOEPuf373L3Mnz4pXAefUj8XLhPEmgdV-qEkMbm1vh3RgqOMvILmKZn3IQ/s200/2611.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5459098429303034338&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#999999;&quot;&gt;This is my first blog... i jst thght that wen all gr8 Indians are writing..y shouldn&#39;t even I give it a try......&lt;/span&gt;&lt;br /&gt;&lt;div&gt;On 26/11, the Thackerays kept mum. Neither did they do nor say anything that could make Mumbai look up to them. But on occasions when anybody calls Mumbai &#39;Bombay&#39; or refers to himself as an Indian before a &#39;Marathi&#39;, the Thackerays are the first ones to take to vandalism and remind &#39;Mumbaikars&#39; of the &#39;Gunda raj&#39; prevalent there.Yes, but when the whole nation stands up for a cause, then they can neither be seen nor heard.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;They are absolutely quick to spread violence on &#39;Valentines Day&#39;, manhandling anybody who is found celebrating the day of love, but where were the Thackerays when the entire nation today remembered and mourned the 26/11 attacks that took place in &#39;Mumbai&#39; and not in &#39;Bombay&#39;? Where were the Thackerays when it was time to pay homage to the martyrs who laid down their lives to save the people who they knew only as their Indian brothers?&lt;/div&gt;&lt;div&gt;Where were the Thackerays when the nation India &lt;b&gt;&#39;Joined Hands Together&#39;&lt;/b&gt; to stand up with the kin of the terror attack victims, who lost their lives for no fault of theirs? &lt;b&gt;The rickshaw-puller from UP is much better than those politicians, for even he left his work and observed the two-minute silence at Taj in Mumbai, to remember the martyrs and pay homage to them...&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align:center;&quot;&gt;&lt;br /&gt;&lt;a href=&quot;http://www.ndtv.com/special/mumbai26-11/&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;img src=&quot;http://drop.ndtv.com/albums/NEWS/2611bravehearts/featured.jpg&quot; border=&quot;0&quot; width=&quot;480&quot;/&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width=&quot;480&quot; height=&quot;385&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/QvDpJCJFqrU?fs=1&amp;amp;hl=en_US&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/QvDpJCJFqrU?fs=1&amp;amp;hl=en_US&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;480&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width=&quot;480&quot; height=&quot;344&quot;&gt;&lt;br /&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/m3rZmCw_BPU&amp;amp;hl=en&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x3a3a3a&amp;amp;color2=0x999999&amp;amp;autoplay=0&amp;amp;showinfo=0&quot;&gt;&lt;br /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;br /&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;br /&gt;&lt;embed src=&quot;http://www.youtube.com/v/m3rZmCw_BPU&amp;amp;hl=en&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x3a3a3a&amp;amp;color2=0x999999&amp;amp;autoplay=0&amp;amp;showinfo=0&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;480&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/object&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sh00nyaa.blogspot.com/feeds/383606778968251429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sh00nyaa.blogspot.com/2009/11/indias-two-minute-silence-enough-to.html#comment-form' title='24 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3538385277721571366/posts/default/383606778968251429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3538385277721571366/posts/default/383606778968251429'/><link rel='alternate' type='text/html' href='http://sh00nyaa.blogspot.com/2009/11/indias-two-minute-silence-enough-to.html' title='India’s two-minute silence enough to mute Thackerays and Company......'/><author><name>viren</name><uri>http://www.blogger.com/profile/17737869883538725172</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXtbFyua1ly5g77kT1diE6CQC1zziYFMJk8stZlvlJsv0f-FDbw7fz9tEf7Gv6bK_WZuTk21HjmCVyUhVCGG4ZOl3YvB9kW3ZqxjRGKDTgQdGDsvfE8ZSxBYjbkRoPDI/s220/DSC01357.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKF2Uu1ApxAEQ3KPMKmJ-pXGCW7E_Gsjrzbrr4Z6CxPJg9oU9cNBWC9qm-WJI9XqU__ulBiLYmR2RajzAY-hOEPuf373L3Mnz4pXAefUj8XLhPEmgdV-qEkMbm1vh3RgqOMvILmKZn3IQ/s72-c/2611.jpg" height="72" width="72"/><thr:total>24</thr:total></entry></feed>