What is generalization?

February 10th, 2008 by uCertify Leave a reply »

Generalization defines a is-a-kind of relationship in which one class shares its structure and/or behavior with one or more other classes. The concept of generalization in UML is similar to inheritance in Java. It maps directly to the extends keyword. It is shown by a straight line originating from the subclass with a hollow arrowhead pointing at the nearest superclass.

The figure below depicts generalization in UML:

The equivalent Java code for this is as follows:

class Animal  {}
class Dog extends Animal  {}
class Cat extends Animal  {}

Best exam simulation SUN scja download free trial. Pass SCJA in first attampt.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.