You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: publicInheritence.cpp
+4-4
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,18 @@ using namespace std;
6
6
classShape {
7
7
8
8
protected:
9
-
int side;
10
9
11
-
public:
12
10
11
+
public:
12
+
int side;
13
13
intgetArea();
14
14
intvolume();
15
15
};
16
16
17
17
18
18
//PUBLIC inheritence-public members of parent class act as public members of child class 2) Protected member of parent class, as protected member of child class
0 commit comments