These terms signify the relationships between classes. These are the building blocks of object oriented programming and very basic stuff. But still for some, these terms look like Latin and Greek. Just wanted to refresh these terms and explain in simpler terms.
Association
Association is a relationship between two objects. In other words, association defines the multiplicity between objects. You may be aware of one-to-one, one-to-many, many-to-one, many-to-many all these words define an association between objects. Aggregation is a special form of association. Composition is a special form of aggregation.
![]()
Example: A Student and a Faculty are having an association.
Aggregation
Aggregation is a special case of association. A directional association between objects. When an object ‘has-a’ another object, then you have got an aggregation between them. Direction between them specified which object contains the other object. Aggregation is also called a “Has-a” relationship.
![]()
Composition
Composition is a special case of aggregation. In a more specific manner, a restricted aggregation is called composition. When an object contains the other object, if the contained object cannot exist without the existence of container object, then it is called composition.
![]()
Example: A class contains students. A student cannot exist without a class. There exists composition between class and students.
Difference between aggregation and composition
Composition is more restrictive. When there is a composition between two objects, the composed object cannot exist without the other object. This restriction is not there in aggregation. Though one object can contain the other object, there is no condition that the composed object must exist. The existence of the composed object is entirely optional. In both aggregation and composition, direction is must. The direction specifies, which object contains the other object.
Example: A Library contains students and books. Relationship between library and student is aggregation. Relationship between library and book is composition. A student can exist without a library and therefore it is aggregation. A book cannot exist without a library and therefore its a composition. For easy understanding I am picking this example. Don’t go deeper into example and justify relationships!
Abstraction
Abstraction is specifying the framework and hiding the implementation level information. Concreteness will be built on top of the abstraction. It gives you a blueprint to follow to while implementing the details. Abstraction reduces the complexity by hiding low level details.
Example: A wire frame model of a car.
Generalization
Generalization uses a “is-a” relationship from a specialization to the generalization class. Common structure and behaviour are used from the specializtion to the generalized class. At a very broader level you can understand this as inheritance. Why I take the term inheritance is, you can relate this term very well. Generalization is also called a “Is-a” relationship.
![]()
Example: Consider there exists a class named Person. A student is a person. A faculty is a person. Therefore here the relationship between student and person, similarly faculty and person is generalization.
Realization
Realization is a relationship between the blueprint class and the object containing its respective implementation level details. This object is said to realize the blueprint class. In other words, you can understand this as the relationship between the interface and the implementing class.
![]()
Example: A particular model of a car ‘GTB Fiorano’ that implements the blueprint of a car realizes the abstraction.
Dependency
Change in structure or behaviour of a class affects the other related class, then there is a dependency between those two classes. It need not be the same vice-versa. When one class contains the other class it this happens.
![]()
Example: Relationship between shape and circle is dependency.
















Thank you..
Rajesh on June 28th, 2010 7:12 amLooking forward for your next post…
very nice content to start
Thanks!
himanshu on June 28th, 2010 7:24 amNow these basic can be easily differentiated, after read this post
Gift vincy on June 28th, 2010 12:12 pmVery helpful. Thanks.
fixxer on June 29th, 2010 10:22 pmNice article. Explanation the concepts clearly.Thank you
ashok on June 29th, 2010 11:22 pmGood article. Thanks.
Gajanan on June 30th, 2010 3:38 amVery nice and easy to understand in a simple definitions.
Ravindra Sareddy on July 1st, 2010 7:59 amIt will be still good iy you give examples with code also.
Anonymous on July 1st, 2010 3:22 pmThank you all. I will try to update the post with sufficient java source code examples soon.
Joe on July 1st, 2010 5:58 pmthanks for posting.please update Java with ibatis configuration it is helpful to us
Anonymous on July 1st, 2010 9:57 pmthanks in advance
An example for aggregation is missing and it could be like:
A car has a stereo system.A car can exist without a stereo system. There exists aggregation between car and stereo.
Jyotilal on July 13th, 2010 5:59 pmThanks Jyotilal for the aggregation example. Actually its otherway around.
A car has a stereo system. A stereo system can exist without a car. There exists aggregation between car and stereo.
Don’t go too technical into electronics and say a car stereo needs a car. Just for an example!
Joe on July 14th, 2010 5:13 amReally very good and straight forward description about the Association, Aggregation, Composition, Abstraction, Generalization, Realization, Dependency. Thank you so much..
Its very handy too..
Cheers,
Prashant S Shivashimpi on July 20th, 2010 11:02 amPrashant.
Superb Example.
Keep Posting Joe
Harish Dewangan on July 29th, 2010 10:46 amThanks! Very nice explanation.
Lingaraj on August 1st, 2010 9:27 amThanks for helping……………
Dhananjay..........aec on August 1st, 2010 4:51 pmGood explain…
Muthukumar on August 3rd, 2010 4:52 amHi ,
thnaks for that information.
but i think i havnet understand that last.(Dependency)
swathi on August 15th, 2010 12:37 pmdoes it comes with arrow or just —- lines. pls post me
Great Post! It clear my mind.
kohtaik on October 2nd, 2010 12:46 pmReally Good article. Nice work.
Rakesh on October 7th, 2010 9:39 amnice… its in a generalized way….very helpful
Anonymous on October 8th, 2010 7:07 amSir. i m n trouble..if u post full code .which contain aggregation and compostion.then it will be very clear to all of us.according to programing point of view.
Mutayyab Shah on October 26th, 2010 6:05 pmand realy good work u have done.we appriciate ur work…
plz post full code waiting 4 ur reply
very nice article… it clearly explains the basic concepts… thanx!
kaushiki on October 31st, 2010 1:32 pmThanks Joe for the wonderful post. It is really quite useful.Most of the times we tend to get confused with these terms as all sound the same. Few more additions would make it better:
Amit Shekhar on November 3rd, 2010 10:28 ama) Class diagrams
b) Code for Aggregation and Composition
Thank You Very Much… It Was Very Helpfull…
Salman Khan on November 6th, 2010 12:02 amThank you for addressing all relevant items.. little bit more code would be marvelous. still great. CDW
Casper on November 9th, 2010 9:03 amGood explaination mate
Narayan on November 9th, 2010 10:15 amTerse explanation of Association, Aggregation and Composition..!!! :) Thanks a lot… :)
Looking forward for your next posts…
Chetan Jadhav on November 14th, 2010 5:38 pmi searched most of the definitions for these association,aggregation and composition…u cleared my doubt …u people are explaining like baby feeding thank you……
RenuNaidu..... on November 27th, 2010 1:41 amjst superb…think u r bst faculty for starters..i bliv in it…”with strong foundationz u can aim for the sky.”
Abhijit Boruah on November 27th, 2010 1:34 pmHi,
The definition given in this site is very clean and neat and simple and very understandable instead of blah..blah…
Cheers !!!
kamatchi sundaram on December 3rd, 2010 9:05 amKM
thank you very much for sharing your knowledge. very useful content. I learnt the concept very well to be applied in OOAD.
Vijay Agalcha on December 10th, 2010 2:26 pmI was always get confused for these relationship but as you defined these relationship it became easy to understand. Thanks buddy :)
Sanjay Upadhyay on December 17th, 2010 6:49 amThanks for these information. Great definition for aggregation n composition
Kareem Afifiy on December 22nd, 2010 10:49 amVery nice page.
Prabhat on January 3rd, 2011 8:59 amIt contains all required information about association, aggregation, composition.
thanks a lot.
Prabhat.
Nice.. Thank You..
viji on January 12th, 2011 5:32 pmHi,
good article.
Thank you.
Radhika on January 19th, 2011 9:27 amhi,
abhishek on January 22nd, 2011 10:29 amthanks for info.this is nice with example.this is really helpful for student as well as employee.
22/jan/2011
very clear and crisp.
priya on February 1st, 2011 4:57 amit’s so clear so far what I see!
lize on February 6th, 2011 10:45 amthank you!
Easy to understand.Nice Post.
Supriya V on February 10th, 2011 7:14 amVery nice….
Balaji on February 10th, 2011 8:16 amThanks ,
pavan srivastava on February 10th, 2011 7:15 pmyour definition is very clear
Sir,
sachin gupta on February 13th, 2011 8:07 amplease describe me multiple inheritance,candidate key, in oops.
Sir,
Please let me know how to depict association, aggregation and composition in java code.
Regards,
Shylaja on February 16th, 2011 9:37 amShylaja V.
thanks this artical is very easy to understand
manisha on February 20th, 2011 11:52 amplease give some examples of programs as illustration for class relation……
ashri on February 27th, 2011 5:14 pmit will be useful.
and thanks very much for this nice post.
Hey,
Its sweet & simple !! You made task very simple and anyone can understand.
Great Work!!!!
Manjunath on March 6th, 2011 12:05 amit is simple and very easy to understand
kondalarao on March 9th, 2011 3:29 amthank you,
simple and understanble…
sambha on March 14th, 2011 8:01 pmThanks a lot
Great Work !!!
Keep going on !!!
All the best !!
sadish on March 16th, 2011 3:20 pmVery nice article. I am facing a unique situation where we have modeled a test case with two compositions between the same two entities. Is this realistic? If so, can you give me a real world example for this?
Su on March 29th, 2011 3:29 pmthank you for you very clear work joe.
ray on April 6th, 2011 6:21 pmWow., Awesome work., Thankz,
KARTHIKEYAN A on April 9th, 2011 5:17 pmKeep up the Good work.,
thanks much. very useful information
Rajasekhar on April 13th, 2011 2:22 amthankz sir , very nice content
ankana on April 13th, 2011 7:51 amthanks sir,
this content is very helpful and outstanding
ayushi garg on April 13th, 2011 8:02 amthanks for give simple & informational content
raziya mev on April 13th, 2011 8:20 amthanks 4 this outstanding content
pranjal soni on April 13th, 2011 8:23 ammast laga maja aagaya…………
vidhyanivash singh kushwaha on April 15th, 2011 7:18 amExcellent! Thanks so much.
Sharron on April 15th, 2011 11:59 pmits very useful for my net i need more info about ooad
nandhini on April 20th, 2011 7:13 amNice article. Keep going.
Anonymous on May 1st, 2011 12:51 amvery nice
BLV on May 2nd, 2011 11:08 am[...] pattern can be implemented in two ways. One using the inheritance method and second using the composition method. Just the implementation methodology is different but the purpose and solution is [...]
Adapter Pattern&hellip on May 7th, 2011 6:01 amvery Nice article……
but need some coded exemples……
BTW thank you very much.
Avinash on May 14th, 2011 9:48 amvery nice understanding…thanks
shoban on May 16th, 2011 9:44 amExcellent, keep it up. Can you explain some of the fewdesign patterns in better understandable way.
Thanks a lot buddy.
Girish
girish on May 17th, 2011 6:43 pmcould you please provide some code samples for association, aggregation and other all oops concepts.
Thanks
Varma on May 18th, 2011 4:56 pmVarma
[...] 我们首先创建一个接口,它为将用于装饰器的类创建蓝图。然后仅仅实现该接口的基本功能。到目前为止我们得到了一个将带有装饰器的蓝图类。 创建一个包含(聚合关系)该接口类型的一个属性。该类的构造方法将该类型接口的实例赋值给该属性。 该类为装饰器的基类。现在你可以扩展该类,然后创建你所需的具体的装饰器类。具体的装饰器类将添加它自己的方法。在之前或之后执行它自己的方法,然后具体的装饰器类将调用基实例的方法。 装饰器模式的关键是将方法和基类实例绑定是在运行时将基类的实例传入到构造方法中。因此可以动态的定制特定实例的行为而不影响其他的实例。 [...]
装饰器设计模式 | J&hellip on May 23rd, 2011 12:58 ammultiplicity is no given here :) pls add
thanks
Girish Varma on May 24th, 2011 4:34 pmIts a great post. Thanks Man!
Atif Mehar on May 25th, 2011 10:46 amPlease give me a simple explanation with example on difference between abstraction and encapsulation.
simanchala on June 2nd, 2011 6:20 amVery nice post…
Dinesh on June 2nd, 2011 6:10 pmhi,
maya butt on June 11th, 2011 3:15 pmvery nice approach i realy like this complete definition pakage with examples
Really nice explanation . Simple and easy to understand
Anonymous on June 14th, 2011 5:52 amI liked the formate of your blog….the best i seen till now
Nice
K eep
I t
S imple
S illy
Completely Followed
Nice Simple Sober & Easily Grab-able & Understandable
Pawan on June 15th, 2011 10:02 pmnice, short, simple and good explanatory.
jagdish on June 17th, 2011 5:02 amNice one
K Vishnu on June 24th, 2011 8:33 amThanks
Sir……this is the best notes of Association I ever seen…….thanks a lot for the simple ans besr definations…
NiteshKumar on June 26th, 2011 2:59 pmSimply Superb
Narendra on June 28th, 2011 5:13 amvery nice
Gunvant phalak on July 7th, 2011 7:16 amVery easily explained and easy to understand all the definition. Keep it up
Parmod on July 8th, 2011 6:56 amtoo much informative
Shahbaz Ali on July 9th, 2011 10:10 amsimply super….very useful Thanks for posting..
niranjan on July 15th, 2011 9:02 amThis article is very helpful and well explained. Thanks
Baravil Barivare on July 15th, 2011 7:10 pmGood Artcile. it helps.. Thanks..!
pravinth on July 17th, 2011 9:49 amvery nice sir. . . . thank u vry much………
sailasya on July 19th, 2011 7:36 amit helped me alot sir………thank u sir
mowlika on July 19th, 2011 7:37 amVery good post, easy way of understanding thank u
prasad on July 21st, 2011 12:20 pmUseful information with good explanation well done Joseph..
Ramakrishna Chandragiri on July 23rd, 2011 4:11 pmrealy good article
ashok on July 28th, 2011 7:59 amThanks dude.. its really so simple to understand these stuffs…….. really gr8 work.
Zahid Nasim on July 29th, 2011 10:16 amnice explanation.. thiru
Thirupathi on August 3rd, 2011 4:43 pmVery Good article… Thank you..
Anonymous on August 6th, 2011 2:44 pmthanks for simple explanation of association, aggregation, composition. Good Work…Thank you..
Kintesh on August 9th, 2011 9:02 amit is so easy and interesting
shubh on August 15th, 2011 2:16 pmexplanation also easy for preparing answerssssssssssss
shubh on August 15th, 2011 2:18 pmNice Article Joe..Like very much the way you describe ,Must say Very good Article for the beginners …!!!
Om Behera on August 16th, 2011 5:45 amSuperb Article !!!!!!!!!
Prakash on August 22nd, 2011 6:58 amNice Article, Much useful for a beginner
NextGeneration on August 22nd, 2011 4:17 pm[...] [from : http://javapapers.com/oops/association-aggregation-composition-abstraction-generalization-realizatio...] [...]
Association, Aggregation,&hellip on August 23rd, 2011 11:27 amvery good explanation on composition and aggregation relationships
Ramyashree on August 25th, 2011 7:43 amDear sir, I need more explanation and example about abstraction… How to apply in c…? i use data structure linked list concept..
Mani on August 25th, 2011 5:55 pmAggregation
———————-
Aggregation is a relationship between two classes that is best described as a “has-a” and “whole/part” relationship. It is a more specialized version of the association relationship. The aggregate class contains a reference to another class and is said to have ownership of that class. Each class referenced is considered to be part-of the aggregate class
Ownership occurs because there can be no cyclic references in an aggregation relationship. If Class A contains a reference to Class B and Class B contains a reference to Class A then no clear ownership can be determined and the relationship is simply one of association.
For example, imagine a Student class that stores information about individual students at a school. Now let’s say there is a Subject class that holds the details about a particular subject (e.g., history, geography). If the Student class is defined to contain a Subject object then it can be said that the Student object has-a Subject object. The Subject object also makes up part-of the Student object, after all there is no student without a subject to study. The Student object is therefore the owner of the Subject object.
Examples:
There is an aggregation relationship between Student class and the Subject class:
public class Subject {
private String name;
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
}
public class Student {
private Subject[] studyAreas = new Subject[10];
//the rest of the Student class
Manas Kumar Meher on September 6th, 2011 2:00 pm}
Nice one.
anbalagan on September 8th, 2011 5:59 amThis website is very useful . but i need short notes and examples for full oops concepts in c++.
Meera on September 9th, 2011 11:04 ammaterial is good but it explain with diagram then it is more effective for readers
vicky on September 18th, 2011 4:31 pmNice explanation. It would recommend to add few more real world examples that could help to understand it more easily.
shahan on September 18th, 2011 10:46 pmNice explanation on the topics of association, aggregation and composition with quite undrestandable language.
Chandraprakash on September 24th, 2011 3:27 amExcellent, A quick glance with best understanding. Keep it up
Nagendra on September 25th, 2011 9:19 amvery helpful and easy 2 understand
Surabhi on September 27th, 2011 5:35 amThank you
You mentioned in this article – Abstraction is specifying the framework and hiding the implementation level information. Abstraction never says about hiding anything. Let’s take an Example of Employee with Super class and Manager and Salesman bening subclass of Employee. So if Employee may provide various implentation in common, but can’t have implementation for calculateBonus because this is fully dependet on nature of employee subclass, and hence Employee would have calculateBonus as abstract. So overall, abstraction is isolation of common essentioal behaviour and supress unimportant behaviours. Abstraction never meanse hiding anything. Hiding of implementation from accidental access is Encapsulation.
Thanks
Arun K Deo on September 30th, 2011 5:08 pmArun Deo
This is very nice explanation with the examples. It helps to crystal clear the things, that have very confusing boundary among them.
Akansh Bhatnagar on October 2nd, 2011 6:13 amIts really nice.I was always get confused for these relationship association, aggregation and composition.Thanks a lot
Anonymous on October 2nd, 2011 8:29 pmits really nice. keep going its really helps lot,
Thanks,
Prabhu on October 4th, 2011 8:35 amPrabhu.
Wonderful… Very nice simple & easy to understood details which might be very complex for beginner……
Appreciate your effort….
Anonymous on October 9th, 2011 9:28 amNice Article on relationships
Love Taneja on October 9th, 2011 10:43 amreally it’s a nice content that you provide through this web. It removes all of my confusion.
Sandeep verma on October 13th, 2011 1:37 pmthanks
Thanks guys for all your overwhelming comments and support.
Joe on October 14th, 2011 7:21 amSir, i want to briefly explanation of attributes……..
mallesh on October 14th, 2011 5:26 pmthank u soo much, nice explanation , i really want this :)
arslion on October 16th, 2011 9:06 pmVery nice post.. i have never experienced such
abi on October 17th, 2011 10:39 amsimple examples for explaining such complex terms like aggregation and composition
i thought so far.. Keep posting…
Best article on association aggregation composition
Srividya on October 17th, 2011 11:58 amThanks…
Ganesh Kar on October 20th, 2011 10:44 amHi, may I seek a clarification about generalization concept. Let’s say I have a two kinds of staff, Manager and Supervisor and both have the same attributes (name,contact number). So, is it possible to say that this has a generalization relationship – Staff as the superclass, Manager and Supervisor as its subclasses althought there’s no difference in terms of the attributes between Manager and Supervisor?
CT on October 24th, 2011 10:23 amThanks you very much for share good knowledge for me .
cheng kuyleang on October 24th, 2011 3:30 pmA very good explanation..I never seen before like this type explanation about this concept
Anonymous on October 24th, 2011 4:01 pmvery nice artical!!
mayur bhalekar on October 24th, 2011 6:52 pmVery nice explanation about class diagram terms…
Arvind kumar on October 28th, 2011 1:05 pmQuestions
1. Identify and briefly explain the objectives, classes, method and attributes for a hotel reservation system.
2. Draw a use case diagram to represent a hotel reservation system.
3. Draw a class diagram that models hotel reservation system data structure, clearly representing the objects, classes, associations, generalization and aggregations.
Thanks
Imrana Aminu Muhd on October 30th, 2011 2:18 pmQuestions
1. Identify and briefly explain the objectives, classes, method and attributes for a hotel reservation system.
2. Draw a use cases diagram to represent a hotel reservation system.
3. Draw a class diagram that models hotel reservation system data structure, clearly representing the objects, classes, associations, generalization and aggregations.
Thanks
Imrana Aminu Muhd on October 30th, 2011 2:34 pmReally simple and excellent explanation. Easy to understand for beginners…!!!
Subir on October 30th, 2011 5:49 pmVery good explanation
siva on October 31st, 2011 10:31 amSuperb Explanation…Keep It Up!
Anonymous on November 1st, 2011 5:52 amdddddddd
zx on November 2nd, 2011 3:04 pmthanks friend
Anonymous on November 3rd, 2011 4:16 pmidentify in detail association and aggregation
jay on November 4th, 2011 4:36 pmNice one
bluepicaso on November 6th, 2011 1:26 pmthank you
Gud NOtes
Anonymous on November 8th, 2011 9:12 amcrystal clear dude.
Anonymous on November 8th, 2011 7:19 pmThanks..!! M sure your examples gonna help in tomorrows exam.
Sanchit on November 9th, 2011 8:14 pm@Sanchit
I feel very happy when I get to know that my blog helps a student.
More than anything, I maintain this to help students succeed in their exams / interviews.
Joe on November 10th, 2011 4:56 amA book CAN exist without a library…. Incorrectly quoted…… Rather a library CANNOT exist without a book….
Nitin on November 10th, 2011 10:30 amVery nice narration.
Baji on November 10th, 2011 12:00 pmWrite an example program each showing dependency,
Anonymous on November 13th, 2011 4:32 amgeneralisation relationships in JAVA
Thanks for the useful info
Animesh on November 15th, 2011 10:36 amNice explanation. If you would provide with one example all the above along with diagams that would be excellent.
dp on November 15th, 2011 10:50 amGood article. One of the questions mentioned above, was related to manager,supervisor and staff. Certainly there is a generalization relationship with Staff as superclass and manager and supervisor classes are subclasses inheriting from Staff. Though attributes could be same in manager and supervisor when it comes behaviour(methods) manager and supervisor classes are specialized with inheriting the generic class i.e., Staff.
Chandra on November 15th, 2011 3:33 pmLun smjhaya h tounae
asdr on November 18th, 2011 4:25 amThank’s man for this article, i found it very helpful for me. Am studying SCJA and i was looking for any comprehensive material for UML basics like this one.
Mohamed on November 18th, 2011 7:25 amits nice. very simple defnation. easy to understand.
Anonymous on November 18th, 2011 10:29 amAwesome post!!!Keep it up.
syed on November 22nd, 2011 8:21 pmNice article on UML concepts. The content of the article is very simple to understand. Thanks.
Ravikumar on November 25th, 2011 6:12 amBrother your website have beautiful GUI. Keep it up, and keep it UP.
Muhammad Asad saleem on November 27th, 2011 7:16 pmNice Post, Hope to get same clarity on design patterns.
Thank you.
jayant on November 28th, 2011 8:41 amvery nice…nd thanx..
Anonymous on November 28th, 2011 6:53 pmNUMBER # 1
Very Clear Topic About the English WORDS “Aggrega…composi…reali…generai….etc etc…etc”
But how can i understand when i want to implement your dictionary details (read NUMBER # 1) on practicing programming ???
Raajpoot on November 29th, 2011 6:49 pmspecially JAVA…
Awesome notes.
Really helpful
Anonymous on December 1st, 2011 6:28 amAwesome…….really good way to understand newcomers!!
Pankaj on December 1st, 2011 5:37 pmSimple & Clear Explanation for the beginners.
Thanks!!
Nambirajan on December 2nd, 2011 10:32 amthis is simple way to understand any definition
sandeep sonali on December 3rd, 2011 7:18 amAwesome…….really good way to understand newcomers!!
Thank you.
amulni on December 6th, 2011 9:05 ameasy way to understaing.
lorisa on December 6th, 2011 9:23 amthanks….
Clean & clear explanation. Thanks Joe.
Ravi on December 6th, 2011 10:34 amreally nice
shiv yadav on December 8th, 2011 5:01 amSimplysuperb, lots of information with very simple words.
praneeth on December 9th, 2011 5:30 pmWonderful Job Joe. Keep it up.
TSKarthic on December 13th, 2011 6:50 pmreally clears the confusion.
Anonymous on December 16th, 2011 3:32 pmNice way of information.
Rohit Ojha on December 20th, 2011 3:51 pmThanks………………
Hi,
Superb Explanation sir .
Pradip Lavania on December 22nd, 2011 5:47 amReally good man easy to understand
Nikhil on December 25th, 2011 11:26 amreally helping me a lot….
venky on December 26th, 2011 2:08 amu r dng a great work.Thank You
is it nice…
i have got some idea…
thanks ..
Ayyappa Dasam on December 27th, 2011 1:46 pmyou have to increase the paragraph
Anonymous on January 2nd, 2012 4:13 amvery nice explanation.
PINTU on January 5th, 2012 8:04 amneat and clear description dude…
Anonymous on January 6th, 2012 9:25 amHi.. Useful explanation and easy to understand. thankyou
Srividya on January 7th, 2012 1:11 pmThis is good post. thanks a lot
Anonymous on January 7th, 2012 3:54 pmIts really post .
Vidhi Jain
vijain on January 8th, 2012 4:59 pmVery nice…Thanks
Anonymous on January 9th, 2012 8:23 ambest for beginner….like me
soshiv on January 9th, 2012 2:01 pmthank you sir
explained in very effective n simple way
vishwajeet awasthi on January 10th, 2012 2:59 pmexplained in very effective n simple way, doing a great job
vishwajeet awasthi on January 10th, 2012 3:00 pmplease change the background color, so that it would be more readable
Anonymous on January 10th, 2012 4:38 pmThank you very much sir. It is ow-some….
kundan on January 16th, 2012 10:57 amGood to start for beginners and experienced juggling between these concepts.
Anonymous on January 19th, 2012 6:59 pmThanks a lot , good explanation with easy example ..
soumava on January 21st, 2012 12:58 pmThanks :Great people explain concept in the simple and easy understandable way.
Madappa.i
Anonymous on January 23rd, 2012 11:59 amthat was a very good explanation. simple and easily understandable…
Anonymous on January 25th, 2012 9:17 amthanks. great for beginners
Anonymous on January 26th, 2012 9:08 amThanks It helps to clear my fundamental
Vikas on January 31st, 2012 7:38 pmall clear ………very gud job !!!!
raman prasher on February 3rd, 2012 12:21 pmits really very usefull and understandable
awanish on February 3rd, 2012 1:03 pmI never thought this small and simple article would become a great hit.
I learn that, more and more we make the technology simple people like it.
Joe on February 5th, 2012 5:32 pmQuike guide to understand the basics…great work…thanks a lot…
Anonymous on February 5th, 2012 11:39 pmnice explanation
Alkesh on February 6th, 2012 12:21 pmGood presentation.
jagan on February 7th, 2012 5:57 pmVery good explanation. Thank you
gopal on February 7th, 2012 11:35 pmthanku its very easy to understand and very easy explanation
lady dabang on February 9th, 2012 10:41 amthanq so much….its very nice …
madhu on February 10th, 2012 9:32 amawesome
samy on February 10th, 2012 11:37 amplease explain more sir,with example..
himanshu on February 11th, 2012 8:32 pmGood Summary. Thanks a lot!
YoFo on February 13th, 2012 7:06 pmA simple class diagram to explain the direction of the relationship would be great, if can be added
nice explanation. very useful. thanks
priya on February 14th, 2012 2:22 pmvery nice explanation
Juhara on February 16th, 2012 1:39 pmNice explanation of the terms…
Rahul on February 17th, 2012 9:36 amnice definitions :)
Jayshree on February 17th, 2012 2:38 pmpallabi baruah wake up!!!!listen to ur tech lead!!!
X on February 17th, 2012 2:42 pmvery nice explanation! keep it up
Anonymous on February 18th, 2012 2:20 pmvery nice explanation! keep it up
Shakeel on February 18th, 2012 2:20 pmvery good.
Shakeel on February 18th, 2012 2:21 pmGoog Explanation. Keep going….
Anonymous on February 18th, 2012 3:11 pmThanks this helps !
raghuraj on February 20th, 2012 9:10 pmthanks this really gives the clarity of this topic
manu on February 22nd, 2012 8:26 pmthank u very much yar
guru on February 22nd, 2012 11:24 pmThanks you very much yar
Anonymous on February 27th, 2012 11:31 amvery nice and better explain with subject examples also,its nice but iam feeling
uma maheswari on February 29th, 2012 12:59 pmThanks this helps !
abhishek on February 29th, 2012 3:58 pmpls write about specialization also
Anonymous on March 1st, 2012 5:20 pmvery nice………
madhuri on March 1st, 2012 5:51 pmthank u so much
can you please explain opps concept in aquarium system? Means how can i explain an aquarium using OOPs
Prajna on March 4th, 2012 10:23 amperfect..!!
jeeva on March 5th, 2012 1:16 pmOne of good artical and understandable.
Santosh on March 6th, 2012 12:06 pmGreat and a very simple way to explain a confusing subject. Thanks a lot for this Post.
Rupesh on March 8th, 2012 9:50 pmGOOD and NICE and SIMPLE Explanation……..
SAGAR_D on March 9th, 2012 9:33 pmThanks for your inputs
sabarish on March 13th, 2012 2:35 pmgood site thanks
sourabh singhai on March 14th, 2012 10:48 pmThanks very much nice information about Generalization, Aggregation, Association, Composition, Dependency,, only one time i have refereed to it but absolutely i got******
Mohammad Arif on March 14th, 2012 10:52 pmLooking forward to your next post like the same******* understandable
Mohammad Arif on March 14th, 2012 10:55 pmNice one
Ankita on March 15th, 2012 5:28 pmthe content is really very good..
Rashmi Varshney on March 16th, 2012 7:17 pmnice information thank u logical examples have been provided
prema on March 17th, 2012 12:18 pmReally useful for beginners.
Dilip on March 20th, 2012 4:18 pmThanks,
good information and very useful to the beginners .
thanks,
swamy on March 21st, 2012 12:40 pmGood Information..
It will give an basic idea to all who dont have base knowledge on these.
From
Anonymous on March 22nd, 2012 12:53 pmKrs Rajasekhar
Good Information..
It will give an basic idea to all who dont have base knowledge on these.
From
Rajasekhar on March 22nd, 2012 12:54 pmKrs Rajasekhar
thanks a lot, you helped us completing our assignment. :)
Abhishek on March 25th, 2012 6:26 pmGood explanations….
VVV on March 26th, 2012 3:08 pmGood explanations….
VVV on March 26th, 2012 3:08 pmNice explanation yaar
Gajendra on March 26th, 2012 11:06 pmVery nice content. I like it. The best site and very comprehensiveness information I ever found.
zeeshan on March 27th, 2012 5:06 pmSimple and easy understandable writing. thanks alot for your effort.
Shameer on March 28th, 2012 12:17 pmSimple and very clear to understud thaks
Anonymous on March 29th, 2012 11:51 amWoow..very Nicely explained…
Raveena Sharma on March 29th, 2012 2:53 pmvery nice
satya on March 30th, 2012 5:04 pmSir what is the difference between generalization and specialization ??????
Anonymous on March 30th, 2012 6:36 pmgood article..
prasad on April 1st, 2012 7:46 pmgive me answer plz..
Ravi on April 2nd, 2012 12:07 amJustifying the statement ,”inheritance is a special case of Generalization”.
Thankyou… nice article.
Vidhya on April 4th, 2012 10:53 amClean and clear explanation. Thanks a lot.
kamal on April 5th, 2012 12:51 pmThanks a lot for such an easy explanation. Examples are also easy to understand and correlate.
SanjayK on April 6th, 2012 9:25 amThanks a lot Joe, Very Useful information with simple language and good examples.
Ganesh on April 6th, 2012 11:05 amnice explanation..
Anonymous on April 6th, 2012 3:09 pmNice Article Joe
Pavan on April 7th, 2012 3:39 pmI love your blog and find helpful…thanks for your great passion! You people make the world really great!
Abdul Hadi Ibrahimi on April 8th, 2012 9:59 pmNice and very helpful Article….
Ashutosh on April 8th, 2012 10:05 pmThank you… nicely explained..!
Jyotsna on April 9th, 2012 9:41 amnice simple article
Anonymous on April 10th, 2012 8:39 amThe Post would become more clear if you difine these concepts in terms of object’s life Cycle.
Vishal on April 13th, 2012 12:24 pmThanks
umadatt on April 14th, 2012 8:54 amNicely Explained
Very useful and complete
Yogesh Dhawale on April 17th, 2012 3:19 pmBest explained concept across the internet .
Asraful forhad chowdhury on April 17th, 2012 11:04 pmI was confused about those terms before reading these article . Thanks a lot. It’s helps me a lot.Will go through to other article.
Nice one Man!!
m on April 18th, 2012 12:39 pmGood article.
ruby on April 18th, 2012 7:00 pmthank you
bismita on April 18th, 2012 8:39 pmFirst i was confused but now i am confidece
Bablu on April 19th, 2012 10:58 amThanks alot
very nice.. Thanks….
saroj on April 19th, 2012 3:54 pmthanks for that and its very easy language
shrikant on April 20th, 2012 2:04 amVery good explaination
Anant Choubey on April 21st, 2012 6:12 pmgood loooking web site sir…
Amit Don on April 24th, 2012 11:34 amthanks ..this is very good artical
riyaz on April 24th, 2012 12:07 pmhelp me alot….thks
baburao on April 24th, 2012 12:42 pmThanks for the explination. If a sample code is given it will become even more better.
Thanks in advance
Prem
Anonymous on April 24th, 2012 3:08 pmThanks for your good job…
Anonymous on April 27th, 2012 9:44 amgood explaination joe, thanks
ajeet on April 28th, 2012 10:22 amgood explaination joe, thanks
ajeet shroti on April 28th, 2012 10:23 amsir,please give your mail id for further refrence..
Anonymous on April 29th, 2012 11:22 amijust hv a doubt about composition ,as a example “A circle is composed of points”.
Ganesh on April 29th, 2012 12:27 pmthen i think points are exist without circle ,,but according to u points r not exist without circle ..plz explain.?
good answer and example
seema gupta on April 29th, 2012 8:49 pmvery Clear n nice explaination …
really confused before reading this article…
thank you!!
keep it up !!
nisha on May 1st, 2012 9:58 amvery nice content to start
suryaSingh on May 2nd, 2012 10:43 amthanks
nice one
swaminathan on May 2nd, 2012 4:08 pmHi Joseph,
This site is of great use for a java programmer like me.
Thank you so much.
Lee on May 3rd, 2012 5:49 pmreally nice to see this site…
Anonymous on May 3rd, 2012 10:06 pmشكرا
K.Saad on May 5th, 2012 7:10 pmThanx
really nice. thanks!
Yoon on May 6th, 2012 7:00 amvery lucid and helpful. thank you.
nitish on May 8th, 2012 1:55 amIn defining the Composition in top of page, I think the sentence should be
Hikmat Jaber on May 8th, 2012 2:08 am“…, if the container object cannot exist without the existence of contained object, then it is called composition”
instead of “…, if the contained object cannot exist without the existence of container object, then it is called composition”
I Think U are right Hikmat.
Priyabrat on May 8th, 2012 3:10 pmGood Article worth Reading. Nice Job!!!
N.Bala on May 10th, 2012 7:27 amSuper explanation
Anonymous on May 12th, 2012 4:05 pmNice article.
Adding some example, hope till will support the article.
There are four kinds of Class relationships
Association: uses a
Ex:a Class Man uses a Class Pen
Aggregation: has a
Ex:a Class Man has a Class Car ( Car is still there when Man die )
Composition: owns a
Ex:a Class Man owns a Class Heart ( When Man die, Heart die )
Inheritance: is a
Ex:a Class Man is a Class Human ( Man is a Human )
A relationship between classes of objects
Inheritance>Composition>Aggregation>Association
Pratik Jain on May 12th, 2012 8:28 pmexcellent. i best site i found till now for jAVA.
Ballem on May 17th, 2012 4:39 pmits my OOMAD exam today and these definitions really made me relaxed regarding their easy understandibility.
Anonymous on May 18th, 2012 3:29 amThnxxxxxx buddyyyyy
Could you please share with java code examples.
A implements B is realization
A extends B is generalization
AM I right?
manojbharal on May 19th, 2012 3:02 pmAwesome
pal on May 21st, 2012 10:13 amsir…you should use email validation in comment box…..
Parshant on May 22nd, 2012 5:44 pmand your site content is awesome….i loved it….
Sir…it clearly differentiated the terms for a novice programmer.
Vijay Arige on May 23rd, 2012 12:46 pmThanks!!:) It was really worthy.. Short & to the point.. Clarifying examples played vital role in understanding.. ‘Thanks’ once again..
Jigar on May 25th, 2012 3:07 am_Js
Clear explanation with simplicity!
Minesh on May 25th, 2012 5:27 pmThanks
Really a useful stuff to understand object relation ship.
Vijay on May 26th, 2012 2:39 pmContent is very good and the site is also looking so good keep it up sir,…
Hakkim on May 27th, 2012 8:20 pmvery helpful and easy understanding
jpnaidu on May 28th, 2012 8:18 pmit’s really good artical…..
krish on May 29th, 2012 9:37 amthanks ji
shukla ji on May 29th, 2012 3:51 pmhii thanks for information
Anonymous on May 30th, 2012 2:40 pmkamal gaba
excellent clarified wit d example
Satyabrata on May 30th, 2012 3:41 pmSimply superb
Mayank Kukadia on May 30th, 2012 6:26 pmThank You
very nice it help me for my next interview :)
arsalan on June 1st, 2012 10:17 pmclearly understand, very good writing. Thank you.
loiletan90 on June 3rd, 2012 2:29 pm