Professional Documents
Culture Documents
Practieal Signifcance:
The elasses and objects help to represnt real life entity with dinerent attributes and
related membor functioms.
The use of inline funetions facilitates faster execution of the
progrum
Redevant Program Outcomes (POs)
main.cpp
//SYIF HARSH KAMBLA
1/ROLL NO 38
3 #include<iostream>
using namespace std;
class Number
11
12
13 inline void Number accept()
14
5 10;
16 y=5
17 }
8
19 inline void Number sum()
20 {
21 add-x*y
22 cout<e"\n addition: "<<add;
23
24 inline void Number: substracted()
25
26 sub x-y;
27 cout<e"\n substraction: "<<sub;
28
29 inline void Number product ()
30
31
32
mul-x*y multiplication : "<smul;
cout<"\n
33
35
34
. .
.Programfinished with exit code 0
Press ENTER to exit
console.
Debug H Save () Beautify
RunORun Stop Share
main.cppP
1/SYIF HARSH KAMBLE
2 1/ROLL NO: 38
3 #include<iostream>
4 using names pace std;
5 class InlineDemo
64
7 public:
8 int square(int s); //declare the function
9
18-{
19 InlineDemo s;
20 cout< Square of a No is: "<<s. square( 10);
21 return 0;
22
23
Square of a No is: 100