1 00:00:03,020 --> 00:00:10,840 Go and compile this program, Jeep Bless Binary or Dart CBB, right? 2 00:00:11,060 --> 00:00:12,020 It's comeback. 3 00:00:12,080 --> 00:00:16,850 Now let's execute this, not let your dog out, right? 4 00:00:16,970 --> 00:00:22,940 And at the fast complex number and other real and imaginary aspect of first, you have to give that 5 00:00:23,120 --> 00:00:23,660 real part. 6 00:00:24,380 --> 00:00:25,040 Then you have to. 7 00:00:25,070 --> 00:00:26,780 You imagine it by three. 8 00:00:26,930 --> 00:00:29,270 Now I'm giving this second complex number. 9 00:00:29,360 --> 00:00:29,990 What is that? 10 00:00:30,260 --> 00:00:31,550 Well, part three. 11 00:00:32,000 --> 00:00:38,690 Second, the imaginary part two are complex number five plus five imaginary part of the second complex 12 00:00:38,870 --> 00:00:42,490 number, plus the imaginary part of that first complex number. 13 00:00:42,500 --> 00:00:45,800 It will be also five three plus two five five plus five. 14 00:00:47,300 --> 00:00:55,250 But what happened this plus operator, which are the meaning of adding two now, must be able to add 15 00:00:55,250 --> 00:01:01,190 that complex numbers because we have changed the meaning of that plus operator in this program. 16 00:01:01,220 --> 00:01:07,480 Just putting this and blessing that complex as an object, complex object, one plus complex object 17 00:01:07,490 --> 00:01:09,470 with just adding that two numbers. 18 00:01:09,590 --> 00:01:12,380 Now let's move to the slide, OK? 19 00:01:12,450 --> 00:01:14,180 Before that, we have one more program. 20 00:01:14,300 --> 00:01:17,000 We have to go to that all learning community. 21 00:01:17,150 --> 00:01:18,760 Greater Unathi Operator. 22 00:01:18,770 --> 00:01:19,730 It's very simple. 23 00:01:19,730 --> 00:01:26,360 You anadio operator will be actually an operator with one call button or leave one argument. 24 00:01:26,630 --> 00:01:29,840 So how do you get all that that C does index audio? 25 00:01:29,960 --> 00:01:32,420 So we are all holding the distance. 26 00:01:32,420 --> 00:01:34,130 Operator minus operator. 27 00:01:34,340 --> 00:01:39,560 OK, suppose I want to negate a value given to that object. 28 00:01:39,770 --> 00:01:42,350 So I have an object Part B one. 29 00:01:42,560 --> 00:01:51,290 I have even two values eleven and hundred and two having another object called D2, and I have two values 30 00:01:51,290 --> 00:01:51,890 minus five. 31 00:01:52,040 --> 00:01:58,940 You know, suppose I want to negate the values of these objects so you never and should be a minus anyway 32 00:01:59,060 --> 00:02:01,130 and then should become a minus state. 33 00:02:01,340 --> 00:02:05,540 And similarly, they do should become five and minus 11. 34 00:02:05,570 --> 00:02:11,300 So for that, what I am doing is I am going to create all a lot of paper. 35 00:02:11,660 --> 00:02:19,550 So very simple to unite the operator class name, operator name, then operator is minus, or you will 36 00:02:19,550 --> 00:02:26,360 be putting operator minus that after the operator where you can put minus, then open bracket gross 37 00:02:26,360 --> 00:02:27,950 bracket give the definition. 38 00:02:28,070 --> 00:02:32,570 So what happened should be minus B in just should B minus in just certain distance. 39 00:02:32,570 --> 00:02:39,260 B talking just here you have the done just as the values inside that class and we are indicating that 40 00:02:39,260 --> 00:02:39,790 values. 41 00:02:40,100 --> 00:02:41,630 Let's see this program in action. 42 00:02:41,690 --> 00:02:42,910 Nothing much to see. 43 00:02:43,130 --> 00:02:43,550 Let's go. 44 00:02:45,290 --> 00:02:53,780 Jeep Blast blasts United, all Nazi BP rebels, dogs slashed in or out. 45 00:02:54,470 --> 00:02:55,930 Oh, great. 46 00:02:56,150 --> 00:03:03,860 First objective, the feed is minus feed is minus 11 minus 10 five and minus my guess offset. 47 00:03:04,160 --> 00:03:11,330 These have negated the values by minus the I'm just giving minus in front of that object. 48 00:03:11,480 --> 00:03:12,380 Then what happened? 49 00:03:12,500 --> 00:03:18,370 This minus was part, and it changed the value of the domain of feeding just to minus aegis. 50 00:03:18,710 --> 00:03:20,990 So this is this index for all unloading it. 51 00:03:23,240 --> 00:03:25,850 So that's it about the operator already. 52 00:03:26,060 --> 00:03:28,840 But we have still some points left to our slide. 53 00:03:28,850 --> 00:03:30,500 Let's go and see that. 54 00:03:30,950 --> 00:03:36,730 So equal to and and are already all over Nordic operator. 55 00:03:37,250 --> 00:03:45,450 Now I know the meaning are so, so you need not to allow that at all or all the presidents and associate 56 00:03:45,450 --> 00:03:46,630 duty of operators. 57 00:03:46,640 --> 00:03:50,930 However, if you want to change the rough evaluation around, this should be used. 58 00:03:51,350 --> 00:03:57,290 So if you are already an operator, you know, board Masonite propaganda, machine multiplication, 59 00:03:57,290 --> 00:03:59,100 addition and subtraction. 60 00:03:59,120 --> 00:04:05,900 So similarly, each operator had a precedence of operation in C++ that will not be changed, right? 61 00:04:06,090 --> 00:04:10,520 Operator I know there are four important operators in C++. 62 00:04:10,520 --> 00:04:14,310 We may not be able to overload that Scarborough solution operator cannot be overloaded. 63 00:04:14,420 --> 00:04:15,950 Dart cannot be overloaded. 64 00:04:16,220 --> 00:04:20,050 Dodge Dart will not be honored and lost in Denmark. 65 00:04:20,360 --> 00:04:22,540 Not not that cannot be all alone. 66 00:04:22,580 --> 00:04:24,470 This is called ternary operator. 67 00:04:24,620 --> 00:04:24,950 OK? 68 00:04:25,160 --> 00:04:26,330 These operators cannot be. 69 00:04:26,840 --> 00:04:27,620 So that's it. 70 00:04:27,620 --> 00:04:29,920 Aboard the overloading in C++. 71 00:04:29,930 --> 00:04:32,110 I think you have understood this topic. 72 00:04:32,120 --> 00:04:34,820 Let's move on to the next let Jason building.