Re: Composition Programming Software Development by hooknc Composition is the act of taking two smaller items and putting them together to make a larger item. Like a door handle being added to a door frame makes a door. Regards, Nate Re: Composition Programming Software Development by kingmahesh Composition (called “has-a Re: Composition Programming Software Development by hooknc [QUOTE=tristan17]hi all, with regard to composition and inheritance, there is a term named as polymorphism...is …it related to the above? so infact, composition is inheritance, but in my class, we usually called the… Composition Programming Software Development by Manojsah Hi I am having problems in getting Composition ? pls tell about it. thanks Manoj Re: Composition Programming Software Development by tristan17 [QUOTE=kingmahesh]Composition (called “has-a Re: Composition Programming Software Development by Manojsah Hello To all who had make me to understand the basic Funda of Composition. Can any of u please tell me where to use RECURSSION IN PROGRAM. or WHEN THE PROGRAM DEMANDS IT. :?: regards Manojsah composition Programming Software Development by CurtisBridges … need to change this program from using inheritance to using composition.[/COLOR] [COLOR=#008000]//Could someone please show me how? I… Re: composition Programming Software Development by ~s.o.s~ … need to change this program from using inheritance to using composition.[/COLOR] [COLOR=#008000]//Could someone please show me how? I… Re: composition Programming Software Development by ~s.o.s~ …. [code=cplusplus] class Circle:public Point3d { // all the members } ; // with composition class Circle { Point3d* pt ; // or Point3d pt, your call // other… Re: composition Programming Software Development by CurtisBridges …. [code=cplusplus] class Circle:public Point3d { // all the members } ; // with composition class Circle { Point3d* pt ; // or Point3d pt, your call // other… Re: composition Programming Software Development by wayne_b i want to know how to use composition while doing a program that also operates polymorphically Composition, did I get it right Programming Software Development by knight fyre My assignment requires me to demonstrate composition in my source code. I completed …where I display the date, I doubt that constitutes composition. Here the question: [QUOTE]Create a system …] [*]In your system design should demonstrate the following concepts: [*]Composition Relationship ("has-a" relationship) Licenses + date [*]… Composition vs. Inheritance Programming Software Development by Jade4127 I am confused about composition in java. I am able to write code using inheritance...…but have no idea how to turn it into composition...from what my textbook said the two are quite similar…. I ultimately would like to write the cylinder code using composition...but I just dont think i get how to apply… Re: Composition, did I get it right Programming Software Development by knight fyre …'t think so, especially since I'm not using the composition to store or display my values, until now anyways, for… most part. I've modified my code to actually use composition but I'm having a new problem; displaying the values… Re: Composition, did I get it right Programming Software Development by knight fyre …'t think so, especially since I'm not using the composition to store or display my values, until now anyways, for… most part. I've modified my code to actually use composition but I'm having a new problem; displaying the values… Re: Composition vs. Inheritance Programming Software Development by Ezzaral To use composition in Cylinder, you would add a Circle instance variable instead … Re: Composition vs. Inheritance Programming Software Development by Jade4127 So basically like this? [CODE] public class Cylinder // Composition { private double length = 1; Circle mycircle = new Circle(); private Object … Re: Composition vs. Inheritance Programming Software Development by fausto1234 … am going to pot here. I have trouble with the composition code. Is my code bellow correct? [CODE]public class Comp… Re: composition in c++ Programming Software Development by HASHMI007 i want make this program by using composition.plz tell me about composition or give me hints, Composition problem "'XXX' is not a base or member" Programming Software Development by knight fyre I'm trying to use composition. I included the header file and made a type of … composition,aggregation,simple association Programming Software Development by awais.abdul please help me solving this i want to show the composition,aggregation,simple association between the classes see attatched gif image plz help me i shall be very thank full to all Re: composition,aggregation,simple association Programming Software Development by awais.abdul plz refine it i try to make it upto this level so help to show better association,composition and agregation Re: composition,aggregation,simple association Programming Software Development by awais.abdul i have made this model please see it and if there is something wrong then correct it help me if there is a problem of association,composition or aggregation and cardinality then help me to improve it please help me to modify it see each object and its relation and improve this model composition in c++ Programming Software Development by HASHMI007 … this program by composite class.plz conver this program using composition...............................! #include<iostream.h> #include<stdlib.h>… Re: composition in c++ Programming Software Development by Ancient Dragon what do you mean by "composition" ? Composition vs inheritence in JButton Programming Software Development by Tomi1988 … the JPanel. But I'd like to create GameFields by composition: public class GameField{ private JButton button; } But in this clase… Re: composition Programming Software Development by Infarction I recommend you read the [url=http://en.wikipedia.org/wiki/Object_composition]Wikipedia article[/url] and see if that clears things up. ;) Re: composition Programming Software Development by CurtisBridges [QUOTE=Infarction;292172]I recommend you read the [url=http://en.wikipedia.org/wiki/Object_composition]Wikipedia article[/url] and see if that clears things up. ;)[/QUOTE] Thanks, Been there, Done that. Just more confused. Re: composition Programming Software Development by CurtisBridges Sorry, about that. I posted incorrect file. Hope this makes more sense. [code] #ifndef CIRCLE4_H #define CIRCLE4_H #include "point3.h" // Point3 class definition class Circle4 : public Point3 { public: // default constructor Circle4( int = 0, int = 0, double = 0.0 ); void setRadius( double ); // set radius double getRadius() const; // … Re: composition Programming Software Development by ~s.o.s~ [quote=CurtisBridges;292208]Thanks for the help and he links thatwas good info. Merry Christmas[/quote] AH the Christmas spirit...Merry Christmas to you too my good friend.