From 496300d59b31d724e61dc1970b268a91b6a6fd50 Mon Sep 17 00:00:00 2001 From: NishanthMolleti <48158364+NishanthMolleti@users.noreply.github.com> Date: Wed, 9 Oct 2019 15:02:17 +0530 Subject: [PATCH] updated class snippet --- MyClass.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MyClass.cpp b/MyClass.cpp index 8b13789..0feeb62 100644 --- a/MyClass.cpp +++ b/MyClass.cpp @@ -1 +1,9 @@ - +//below is an example of the implementation of classes in CPP +class Demo //class has been created with name 'Demo' +{ + public: //access specifier + void fun() //function creation + { + cout<<"class is created"; + } +};