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"; + } +};