---
title: "Discussion on \"A Deep Dive into more O.O.P. concepts in Dart\" | Hashnode"
description: "Discussion on \"A Deep Dive into more O.O.P. concepts in Dart\". Factory Methods\nFactory methods are static methods that return an instance of the class. They are often used as constructors.\nAn example of how a factory method works is \nclass Employee {\n  int _id;\n\n  String _name;\n\n  double _salary;\n\n  Employee(thi..."
url: "https://hashnode.com/posts/a-deep-dive-into-more-oop-concepts-in-dart/63845d0023e542227a9b5ef8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A Deep Dive into more O.O.P. concepts in Dart](https://mindo.hashnode.dev/a-deep-dive-into-more-oop-concepts-in-dart?utm_source=hashnode&utm_medium=feed)

Factory Methods Factory methods are static methods that return an instance of the class. They are often used as constructors. An example of how a factory method works is class Employee { int \_id; String \_name; double \_salary; Employee(thi...

Nov 28, 2022 · 5 min read · mindo.hashnode.dev  
Read the article

-   [#dart](https://hashnode.com/tag/dart)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Joseph Mindo](https://hashnode.com/@JoeMindo)

@JoeMindo · Nakuru, Kenya

  
[View profile](https://hashnode.com/@JoeMindo)

FullStack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
