Answer:
The Following are the outputs:
a. vroom
b. car 1
c. car 2
d. vroom
e. truck 1
f. car 2
Explanation:
The first statement System.out.println(mycar); prints an instance of the Car object my car which calls the toString() method.
The second statement mycar.m1(); Calls the method m1() which prints car1
The third statement mycar.m2(); calls the method m2() which prints car2
Then another class is created Truck, and Truck inherits all the methods of Car since it extends Car. Truck has a method m1() which will override the inherited method m1() from the Car class.
The fourth statement System.out.println(mytruck); will print print vroom just as the first statement since it inherits that method toString()
The fifth statement calls m1() in the Truck class hence prints Truck 1
Finally the sixth statement will print car 2 because it also inherited that method and didnt overide it.
Answer:
finding a suitable solution for issue can be accomplished by following the basic four-step problem solving process and methodology outlined.
Answer:
It's an example of a software/hardware.
Explanation:
Answer:
B. 40 and 50%
Explanation:
The support related to a rule is the total number of transactions that contain both X and Y. Whereas confidence is the total number of transactions that contain both X and Y by the total number of transactions that contain X.
Here X union Y= 2. Hence, percentage = 2/5 =40% (Support)
and Cardinality of X is 4
Confidence =2/4 = 50%
Hence, B. is the correct option.
Answer:
4
Explanation: All the other ones are a rushed way of storing files