diff --git a/CHANGELOG.md b/CHANGELOG.md
index 424148a..8823bcc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@ Changelog
 Next Version
 ------------
 
+* Support ``fromYAML`` classmethod for all Munch subclasses (PR [#52](https://github.com/Infinidat/munch/pull/52) fixes [#34](https://github.com/Infinidat/munch/issues/34)
+
 2.4.0 (2019-10-29)
 ------------------
 
diff --git a/munch/__init__.py b/munch/__init__.py
index 83420a4..384c504 100644
--- a/munch/__init__.py
+++ b/munch/__init__.py
@@ -615,12 +615,13 @@ try:
         else:
             return yaml.dump(self, **opts)
 
-    def fromYAML(*args, **kwargs):
-        kwargs.setdefault('Loader', yaml.FullLoader)
-        return munchify(yaml.load(*args, **kwargs))
+    def fromYAML(cls, stream, *args, **kwargs):
+        factory = lambda d: cls(*(args + (d,)), **kwargs)
+        loader_class = kwargs.pop('Loader', yaml.FullLoader)
+        return munchify(yaml.load(stream, Loader=loader_class), factory=factory)
 
     Munch.toYAML = toYAML
-    Munch.fromYAML = staticmethod(fromYAML)
+    Munch.fromYAML = classmethod(fromYAML)
 
 except ImportError:
     pass

DefaultMunch.fromYAML should take default argument
Currently, `DefaultMunch.fromYAML` is the same as `Munch.fromYAML`. This is confusing, and it is a pitty because a real `DefaultMunch.fromYAML` would add functionality which, FWIW, I could use.  Thus, I propose to create a dedicated `DefaultMunch.fromYAML` function with a parameter for the default value.
diff --git a/tests/test_yaml.py b/tests/test_yaml.py
index 92054a8..6d15261 100644
--- a/tests/test_yaml.py
+++ b/tests/test_yaml.py
@@ -1,5 +1,5 @@
 import pytest
-from munch import Munch
+from munch import Munch, DefaultMunch
 
 
 def test_from_yaml(yaml):
@@ -39,7 +39,22 @@ def test_toYAML(yaml):
 
 @pytest.mark.usefixtures('yaml')
 def test_fromYAML():
+    # pylint: disable=unidiomatic-typecheck
     yaml_str = 'foo:\n    bar:\n    - 1\n    - 2\n    hello: world\n'
     obj = Munch.fromYAML(yaml_str)
+    assert type(obj) == Munch
     assert obj == Munch(foo=Munch(bar=[1, 2], hello='world'))
     assert obj.toYAML() == yaml_str
+
+
+@pytest.mark.usefixtures('yaml')
+def test_fromYAML_default_munch():
+    # pylint: disable=unidiomatic-typecheck
+    yaml_str = 'foo:\n    bar:\n    - 1\n    - 2\n    hello: world\n'
+    default_value = object()
+    obj = DefaultMunch.fromYAML(yaml_str, default_value)
+    assert type(obj) == DefaultMunch
+    assert obj == DefaultMunch(foo=Munch(bar=[1, 2], hello='world'))
+    assert obj['not_exist'] is default_value
+    assert obj.not_exist is default_value
+    assert obj.toYAML() == yaml_str

pip install -e .[testing,yaml]
parse_log_pytest
requirements.txt
pytest coverage PyYAML
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
astroid==2.15.8
certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
exceptiongroup==1.2.2
importlib-metadata==6.7.0
iniconfig==2.0.0
isort==4.3.21
lazy-object-proxy==1.9.0
mccabe==0.6.1
-e git+https://github.com/Infinidat/munch.git@dede29c5e8bde7ca575365d50dd44f8fc12a5991#egg=munch
packaging==24.0
pluggy==1.2.0
pylint==2.3.1
pytest==7.4.4
PyYAML==6.0.1
six==1.17.0
tomli==2.0.1
typed-ast==1.5.5
typing_extensions==4.7.1
wrapt==1.16.0
zipp==3.15.0

name: munch
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - astroid==2.15.8
      - coverage==7.2.7
      - exceptiongroup==1.2.2
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - isort==4.3.21
      - lazy-object-proxy==1.9.0
      - mccabe==0.6.1
      - packaging==24.0
      - pluggy==1.2.0
      - pylint==2.3.1
      - pytest==7.4.4
      - pyyaml==6.0.1
      - six==1.17.0
      - tomli==2.0.1
      - typed-ast==1.5.5
      - typing-extensions==4.7.1
      - wrapt==1.16.0
      - zipp==3.15.0
prefix: /opt/conda/envs/munch

tests/test_yaml.py::test_fromYAML_default_munch
tests/test_yaml.py::test_from_yaml tests/test_yaml.py::test_to_yaml_safe tests/test_yaml.py::test_to_yaml tests/test_yaml.py::test_toYAML tests/test_yaml.py::test_fromYAML
munch/__init__.py CHANGELOG.md
munch/__init__.py CHANGELOG.md