.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> OOPS >> Post New QuestionBookmark and Share Subscribe to Forum

Brief explanation with sample examples on oops conects and Access Specifiers in .net?

Posted By: divs99     Posted Date: May 29, 2012    Points:5   Category :OOPS
i want brief explanation with sample examples on oops conects and Access Specifiers in .net?

Responses
Author: Mohanraj             
Posted Date: July 05, 2012     Points: 20   

Hi,

PRIVATE:

The variables and member functions can only accessed by the code in the same class or struct.

PROTECTED:

The variables and member functions can only accessed by the code in the same class or struct or in a derived class.

PUBLIC:

The variables and member functions can be accessed by any code within that assembly or other assembly that references it.

INTERNAL:

The variables and member functions can be accessed by any code within that assembly but not from other assembly.


PROTECTED INTERNAL

It has the same access level as protected and internal.


Author: Syed Shakeer Hussain             
Posted Date: July 07, 2012     Points: 20   

Hi,
Check the below link for OPPS concepts explained with examples.
http://www.aspdotnet-suresh.com/2010/04/introduction-to-object-oriented.html


Author: ashleyturnier             
Posted Date: October 11, 2013     Points: 20   

Basic Concepts OOPs is:

1.Object
2.Class
3.Data Encapsulation
4.Data Abstraction
5.Polymorphism
6.Inheritance
7.Communication

Access Specifiers are:

1.Public
2.Private
3.Protected
4.Internal
5.Protected Internal




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend