Computer scienceFundamentalsEssentialsSoftware constructionDesign patternsStructural design patterns

Flyweight pattern

Flyweight fields

Report a typo

Take a look at the snippet below. What is Shape circleShape supposed to be?

class Shape is
  float size
  String line

  constructor of Shape(size, line) is ...


class Circle is
  String circle
  Shape circleShape

  constructor of Circle(round, circleShape) is ...
Select one option from the list
___

Create a free account to access the full topic