C# - Abstraction And Encapsulation In Asp.net?

Mar 13, 2010

when we write all our application methods and variables in a classes is nothing but data abstraction and encapsulation.Is it right?

View 2 Replies


Similar Messages:

Architecture :: Differentiate B.w Abstraction And Encapsulation?

Feb 14, 2011

I cannot differentiate b.w Abstraction and Encapsulation.Could anyone explain diff b/w these two together with some c# examples?

View 9 Replies

Override The Methods + Role Of Abstraction And Encapsulation?

Jan 4, 2011

1. Why we need override the methods? (i know what is ovwrriding but why ?)I gave answer to extend the functionality of method is it right ? again sub question was ,

Class A
{
method1()[code]....

if i can create the object of Class A in class B and can invok the method then why need to override metho here ? in fact i could not get this question , because i think both concept are irrelevat with each other. why he asked this ?same for overloading.

why we need overloading?If MSIL is there then what is need of CLS(common language runtime ) and CTS(common type system)List the 5 resposibilities of CLR (I explained only CTS,CLS,Garbage collection) was i right . what else?

What is role of abstraction and encapsulation? what the difference between them ? In which situation we have to devlop abstration and encapsulation.


6.What is included in signatures , when we said overloading means same name but different in signature. Is access modifiers included?

7.What is asp.net application life cycle?

8.Let say I am requesting for web application first time (genuine first time), how the request will executes? how IIS will know that for which application is this request is ?

9.If interfaces have empty methods (implicit abstract method) then what is its need? why we say it is reduces the code and provide reusability ?

10.In which scenario we need to implement interfaces?

11.In which circumstances we need to develop abstract classes?

12.Is class is static, means we can not create its instance, we can not derive it then how can we use method containing it? Why we need static classes?
Please guide me about these all question

13 What are the http handlers. http modules? who handle the request and resposes? why need of httpcontext ? what are the limitations of http handler, httprequest, httpcontext, httpresponse.

View 4 Replies

C# - Hierarchal Data Context And Abstraction?

Mar 31, 2011

I am creating a core library for one of our internal project. This core library supposed to contain some abstract classes and generic classes which will then be extended by specialized projects. For example, There is an AbstractPerson class with standard properties and methods for a Person class while another project will implement a Person class which will inherit from the AbstractPerson class to add project specific functionality.

Now we need to impelment DAL for this common and specialized projects.As most of operations are generic so i want to include them into core library as Repository classes. However, Repository classes need to access LINQ dataContext. Which is generated from the specialized databases. Hence there is no dataContext available in Core library to work. So how could i can create a common repository classes for generic methods which can reside in the common library.

View 1 Replies

C# - Class Encapsulation With Repository Pattern?

Oct 18, 2010

I am sort of using a repository pattern to extract information from a database. I have two classes, report and reportRepository.

The trouble I have is that since reportReposity has to fill in all the details for the report object, all the members in the report have to be publicly accessible.

Is there a way so that I can ensure that only the repository class can access some of the methods of the report class and only it can set some of the properties that other classes cannot, sort of like what friend does in c++. Or is there a completely different way of handling this situation?

I am using C# in ASP.NET 2.0

View 2 Replies

Architecture :: Encapsulation Doubt In The Code?

Nov 26, 2010

I am using code like this in Business Logic.Can u explian the below whether i am using Encapsulation concept in the below code.Also tell me why i should use private for declaring variable _Region and public for the property Region


private string _Region;

public string Region
{ [code]....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved