# State Management (Abstract class)

**URL:** <https://forums.kodeco.com/t/state-management-abstract-class/156439>\
**Category:** Flutter Apprentice\
**Created:** [November 9, 2021, 8:35am UTC](https://forums.kodeco.com/t/state-management-abstract-class/156439 "2021-11-09T08:35:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivaxa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/olivaxa/32/81494_2.png) [@olivaxa](https://forums.kodeco.com/u/olivaxa)\
**Post date:** [November 9, 2021, 8:35am UTC](https://forums.kodeco.com/t/state-management-abstract-class/156439/1 "2021-11-09T08:35:22Z")

</div>

Hi.

Can you help me please ? I would like to know :

1. Abstract class leaves the implementation to subclass. Code will be safe, honest… Why exactly ?

2. A subclass implements an abstract class. Why don’t we use `class MemoryRepository implements Repository` instead of `class MemoryRepository extends Repository` in the book? What’s the difference ?

Ps: I think I will find my answer for question 1 in Dart book. (I will buy it after reading flutter book …)
