Search
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Forums Author
Thu, 31-Jul-2014 Authors
Naga116
20
Mandlaa
10
All Time Authors
Jayakumars
4120
Karthikanbarasan
3455
Chvrsri
3140

Latest members | More ...


(Statistics delayed by 5 minutes)

real time example of Encapsulation and abstraction

Karthikanbarasan
Posted by Karthikanbarasan under C# on 1/3/2011 10:49:14 PM | Points: 10 | Views : 60937 | Status : [Member] [Moderator] [Microsoft_MVP] [MVP] | Replies : 7


Can any one give real time example of encapsulation and abstraction

Thanks
Karthik
www.f5Debug.net


Posted by: T.saravanan on: 1/3/2011 [Member] [MVP] Silver | Points: 25

Hi,

For Encapsulation...http://www.c-sharpcorner.com/UploadFile/ggaganesh/EncapsulationInCS11082005064310AM/EncapsulationInCS.aspx

For Abstraction....http://www.pragimtech.com/Abstract.aspx

Refer those links...

Cheers :)

Thanks,
T.Saravanan

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/4/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

I dont see any real time examples here saravanan

Thanks
Karthik
www.f5Debug.net

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vilasgite080 on: 7/16/2011 [Member] Starter | Points: 25

Hi Karthik
Some Real life examples relating to :
http://www.coolinterview.com/interview/15413/
---------------------------------------------------------------------------------------------------
If this reply hepls your post.then "MARK AS ANSWER"!

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/7/2012 [Member] Bronze | Points: 25

http://wiki.answers.com/Q/What_is_Realtime_example_of_encapsulation_and_data_abstraction
http://www.techbaba.com/q/1868-explain+detail+real+time+examples+abstraction+polymorphism+encapsulation.aspx

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijusah2010 on: 3/6/2013 [Member] Starter | Points: 25

Ecapsulation-enphasis on hiding the data
abstaction-exposing necessary data

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 3/6/2013 [Member] Starter | Points: 25

Encapsulation means
In your normal aspx.cs page you can see
public partial class LoginPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{ }}

public and protected are encapsulated inside class....... similarly will come if used private also

This is for encapsulation./...



Abstraction:

Means for the class we cant create object (eg) static


class Employee
{
public static void main(string args[]){}
or
public static function1(){}

}


we wont create object like following(we cant since it is static)

function1 f=new function1() // Wrong

instead will access directly by using

Employee emp=new Employee()
emp.function1() //correct



Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shanky11 on: 3/6/2013 [Member] Starter | Points: 25

encapsulation......take example of tablet we are not conceren about it composittion it is mase up of many substances .we omly take it rather than getting in detals of compostion.
abstraction .........take a example of salesperson when we go in car show room and asked sales perosn to what are the features of mercedes 6 series he provides
us the specification of that particular car and model it doesn;t mean they don;t have another but gives us only revelant information

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response


Found interesting? Add this to: