Answer:
class studentType: public personType
{
public:
virtual void print() = 0;
virtual void calculateGPA() = 0;
void setID(long id) {
studentId = id;
}
void setCourses(const string c[], int noOfC) {
noOfCourses = noOfC;
for (int i=0; i<noOfCourses; i++) {
courses[i] = c[i];
}
}
void setGrades(const char cG[], int noOfC) {
noOfCourses = noOfC;
for (int i=0; i<noOfCourses; i++) {
coursesGrade[i] = cG[i];
}
}
long getID() {
return studentId;
}
string* getCourses() {
return courses;
}
char* getGrades() {
return coursesGrade;
}
studentType(string fName = "", string lastName = "",
long id = 0, string c[] = NULL, char cG[] = NULL, int noOfC = 0);
private:
long studentId;
string courses[6];
char coursesGrade[6];
int noOfCourses;
};
Explanation:
Code rewritten
Answer:
it depends
Explanation:
if you are hacking for a purpose that is benefiting the person being hacked, that is ethical hacking. ethical hacking is not illegal, as long as you get permission from the person being hacked.
if you hack someone without their knowledge, that is unethical hacking, and that is in many cases, a crime, and if it has enough of a detrimental effect on a companys process, it could land you into prison and earn you a hefty fine.
ethical hacking is good for testing a networks security, and if all is well, the ethical hacker shouldnt be able to get into a network if it is secured properly.
Answer:
Correct answer is option B (The reason for using supertypes is to minimize the number of nulls and to minimize the likelihood of redundant relationships)
Explanation:
Entity supertype
A entity supertype is a generic entity type which is related with one or more subtypes.
Use of entity supertype:
The reason for using entity supertype is to reduce redundant relationships and it is also used to minimize the number of nulls.
Sos shacahacwhaveusbsusvs js