Author Topic: How to model this with UML ?  (Read 459 times)

mkontro

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How to model this with UML ?
« on: June 16, 2005, 11:19:11 pm »
Hi,

How should I model this with UML:


template<class T>
class TemplateClass : public T
{ };

class HelperClass
{ };

class OwnClass : public TemplateClass<HelperClass>
{ };


...and there can be 1-n OwnClasses kind of classes around
like:


class AnotherClass : public TemplateClass<WhatEverClass>
{ };


So, template class is spesialized always in inheritance (objects of spesialized class not created) and base inherits
the class given as a template parameter.