![]() |
|
| vb / asp.net Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too. |
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Jul 2006
Posts: 1,391
Thanks: 1
Thanked 28 Times in 25 Posts
Rep Power: 19 | Asp.net - difference between Association , Aggregation and Inheritance What is difference between Association , Aggregation and Inheritance relationships? |
| | |
| | #2 (permalink) |
| Junior Member Join Date: Mar 2008 Age: 33
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 | Re: Asp.net - difference between Association , Aggregation and Inheritance What is difference between Association , Aggregation and Inheritance relationships? |
| | |
| | #3 (permalink) |
| Junior Member Join Date: Jan 2009 Age: 24
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 1 | Re: Asp.net - difference between Association , Aggregation and Inheritance In object oriented world objects have relation and hierarchies in between them. There are basically three kind of relationship in Object Oriented world :- Association :- This is the simplest relationship between objects. Example every customer has sales. So Customer object and sales object have an association relation between them. Aggregation:- This is also called as composition model. Example in order to make a “Accounts” class it has use other objects example “Voucher”, “Journal” and “Cash” objects. So accounts class is aggregation of these three objects. Inheritance:- ierarchy is used to define more specialized classes based on a preexisting generalized class. Example we have VEHICLE class and we can inherit this class make more specialized class like CAR, which will add new attributes and use some existing qualities of the parent class. Its shows more of a parent-child relationship. This kind of hierarchy is called inheritance. |
| | |
| The Following User Says Thank You to dashah_323 For This Useful Post: | AjayKumar.Kataram (28-01-09)
|
| | #4 (permalink) |
| Junior Member Join Date: Jan 2009 Age: 24
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 1 | Re: Asp.net - difference between Association , Aggregation and Inheritance Or |
| | |
| | #5 (permalink) |
| Junior Member Join Date: Jan 2009 Age: 24
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 1 | Re: Asp.net - difference between Association , Aggregation and Inheritance go through this one... CodeProject: Introduction to Object Oriented Programming Concepts (OOP) and More. Free source code and programming help regards, Dharmesh A. Shah |
| | |
| The Following User Says Thank You to dashah_323 For This Useful Post: | AjayKumar.Kataram (28-01-09)
|
![]() |
| Tags |
| aggregation , aspnet , association , difference , inheritance |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| J2EE - difference between Inheritance and Aggregation | preethisingh | Java Interview / Technical Questions | 2 | 08-05-07 03:37 PM |
| More Interview Questions Here... |