S
sunny
Hai,
can anyone implemen this problem.I am unable to implement.i tried but i
am going out of the design pattern.
Implement the Factory Design Pattern for the following scenario:
Base class = Quad
Derived classes = Square, Rectangle
Take command line arguments for length & width. Depending upon no. of
arguments,
create and return the object of appropriate derived class. Each class
should have a
function named "desc" to print the class name. Base class should be
abstract.
Kindly find me the solution for this problem
Thanking You,
K.RajaSekhar
can anyone implemen this problem.I am unable to implement.i tried but i
am going out of the design pattern.
Implement the Factory Design Pattern for the following scenario:
Base class = Quad
Derived classes = Square, Rectangle
Take command line arguments for length & width. Depending upon no. of
arguments,
create and return the object of appropriate derived class. Each class
should have a
function named "desc" to print the class name. Base class should be
abstract.
Kindly find me the solution for this problem
Thanking You,
K.RajaSekhar