Answer:
Person p1, p2, p3;
int m1, m2, m3;
p1 = new Person();
// assignment 1
m1 = p1.getMoney();
p2 = new Student();
// assignment 2
m2 = p2.getMoney();
p3 = new Employee();
// assignment 3
m3 = p3.getMoney();
//////////////////////////////////////////////////////////////////////////////////////////////
The reference to getMoney in assignment 3 is to the <em>Person</em> class.
Explanation:
Since Employee class didn't override Person class's getMoney() method, calling p3 with getMoney() will call Base class's (Person) getMoney() method.
Clocks maybe is the answer. I really don’t know
Answer:
ifstream inputFile;
inputFile.open("Friends.txt");
Explanation:
Though, the programming language is not stated, questions like this are often from C++.
The first statement defines the ifstream object using the following syntax.
ifstream [object_name]
In this case, the object name is inputFile
So, the syntax becomes
ifstream inputFile;
The next line opens a file using the following syntax.
[object_name].open("Filename")
Here, object_name is inputFile and filename is Friends.txt
So, the open statement becomes
inputFile.open("Friends.txt")
Explanation:Strong AI has a complex algorithm that helps it act in different situations, while all the actions in weak AIs are pre-programmed by a human. Strong AI-powered machines have a mind of their own. They can process and make independent decisions, while weak AI-based machines can only simulate human behavior.
Answer:
I think the answer is USB Ports