Please show me an example of Aggregation, Inheritance, and Dependence within Java
Please show me an example of Aggregation, Inheritance, and Dependence within Java.
Re: Please show me an example of Aggregation, Inheritance, and Dependence within Java
Have a look at text or online resources. Wikipedia has good content for basic programming concepts: sometimes with language specific examples, sometimes not. Even if the likes of Wikipedia give teh code examples you are better off ignoring them to start with and constructing your own based on your own understanding.
People here are more than happy to help with your examples. So if you get stuck, explain what you think "aggregation" means, what code you have have come up with, and say what is going wrong with it. (specific statements in text which are incomprehensible, code doesn't compile or doesn't behave at runtime as you intend etc). This is a forum - ie a place for discussion - so engage people in discussion which involves both beginning with a statement of your problem and responding, acknowledging and questioning what other people post.