As we know that 10-bAse data travels at the rate of 10 mbps,
therefore at 1 sec we have 10240 bytes.
We have to calculate for 64 bytes travelling in one second.
Multiply both sides by 64.
64 sec = 10240 x 64 bytes
64 bytes = 64 / 10240 sec
Now we have to calculate for light of speed
1 sec = 186000 miles
Substitute this value to the formula above
64 bytes = 64 / 10240 x 1 sec = 64 / 10240 x 186000 miles =
64 / 10240 x 186000 x 5280 feet = 6138x10^3 feet
Therefore, 64 bytes is equal to 6138 x 10^3 feet long
message
<u>Output:</u>
f1 in A
f2 in A
f1 in B
f2 in A
f1 in A
f2 in A
f1 in B
f2 in B
<u>Explanation:</u>
In this snippet, the code makes use of virtual functions. A virtual function is defined as a function that is defined in the base class and redefined in the derived class. If the derived function accesses the virtual function, the program will get executed with the derived class’s version of the function.
In this code, we define the virtual function f1() in class A and also redefine it in class B which is the derived class of A. While executing the program, the function g which takes the object b (class B’s object) as a parameter. It will print class B’s version of f1() rather than class A’s version. This is working off the virtual function.
It is C I have a lot of experience with computers and technology