Which is the correct notation to specify the following inheritance?
Class Students inherits from abstract class
People with only member printInfo() of class
People accessible to class Students.

Answers

Answer 1

Answer:

Create the student class object which inherit the printinfo() from the abstract class People

Explanation:

Classes in object-oriented programming are blueprints of a defined type of data structure.

An object of an abstract class cannot be instantiated. So, the People class in question, is only inherited by the Student class which able to use the define printinfo() method.

Answer 2

There are a lot of aspect to programming. The correct notation to specify the following inheritance is Class Students inherits from abstract class.

Inheritance is simply known one of the key aspects of Object Oriented Programming (OOP).

It is known to help to give code re-usability. When writing the same code every time, one can be said to inherit the properties of one class into the other.

Learn more about Inheritance in programming from

https://brainly.com/question/14078098


Related Questions

Write a program that prompts the user to enter three words. The program will then sort the words in alphabetical order, and display them on the screen. The program must be able to support words with both uppercase and lowercase letters. You must use C style strings (string class).

Answers

Answer:

#include <iostream>

#include<bits/stdc++.h>

using namespace std;

bool sorter(string a, string b)

{

   return a<b;

}

int main(){

   string wordList[3];

   string word;

   for (int i = 0; i < 3; i++){

       cout<< "Enter word: ";

       cin>> word;

       wordList[i] = word;

   }

   sort(wordList, wordList+3, sorter);

   for (int i = 0; i < 3; i++){

       cout<< wordList[i]<< "\n";

}

}

Explanation:

The C++ source code prompts the user for string words that are appended to the wordList array. The array is sorted with the sort() function from the C++ bits library. The finally for loop statement prints out the items in the array.

The factorial of n is equal to ______.

Answers

Answer:

n! = n*(n-1)*(n-2)*(n-3)* ... *2*1

Explanation:

The factorial operator is simply a mathematical expression of the product of a stated integer and all integers below that number down to 1.  Consider these following examples:

4! = 4 * 3 * 2 * 1

4! = 12 * 2 * 1

4! = 24

6! = 6 * 5 * 4 * 3 * 2 * 1

6! = 30 * 4 * 3 * 2 * 1

6! = 120 * 3 * 2 * 1

6! = 360 * 2 * 1

6! = 720

So, the factorial of n would follow the same as such:

n! = n * (n-1) * (n-2) * ... * 2 * 1

Cheers.

Other Questions
Refer to the passage."If you come to consider the conditions a country requires to be thought to receive the excess of population flowing from European sources in such a state that the latter may have hopes of good prospects we find that to a relative depopulation and consequent cheapness of land with want of men to till the soil, you must add a mild and temperate climate which will induce the immigrants to establish in the land of his adoption and continue his old manner of living, without being obliged to habituate himself to a new system; there should be complete security for persons and property guaranteed by the laws and tribunals; there should also exist, at the very least, as much liberty of action and of thought as immigrants enjoyed at his own country; there should likewise exist proper means of communication which would facilitate an easy and cheap traffic between the parties, their ideas and their industrial products; and lastly there should reign throughout the country where the immigrants directs his steps a grade of civilization in all equal to that which is to be found in the most part of European governments.All of these conditions are to be found . . . in the Argentine Republic.1883 government report on European immigration to the Argentine Republic Which of the following best explains the goals of the Argentine Republic in encouraging immigration in the late 1800s?A)It wanted to offset the migration of indigenous people to Europe. B)It needed soldiers due to a looming crisis with neighboring Brazil. C)It was experiencing labor shortages due to growing demand for exports.D)It was seeking to replace labor lost to the emancipation of enslaved persons. On average, 10% of the energy from one trophic level is available to the next level. Approximately what percentage of energy is available to the lions (tertiary consumers) in the ecosystem represented in Figure 1 (assuming the primary producer level represents 100% of the energy)? Show your work to justify your answer. Why did Ming leaders believe that foreign trade had negative effects?Foreign trade led to other nations invading China.The trade led to higher taxes on the richer classes in China.Too much money was spent on trade and not on building projects.Trade interactions led to societal changes that weakened Chinese culture. What is the best estimate for the value of the expression? (34/8 - 16/3) - 14/9 -3-2 1/277 1/2 PLEASE HELP ASAP Find the missing value.Hint: Use the number line to find the missing value.ad| +6= -3 Josephs lunch at the diner costs $15 without tax. He left the waiter a 21% tip. What was his total cost of the lunch, including tip, without tax? How much money is FDIC-protected the roles of farmers, artisans, ans slaves to the roles of rulers and other government officials in the akkadian and babylonian empire. IT MAKES NO SENSE TO ME LIKE- plz help meeee :( Which speaker is most clearly using the Enlightenment idea of the social contract to support American independence? Speaker 1 Speaker 2 Speaker 3 Speaker 4 A(n) _____ is a formal meeting between an employer and a job applicant a. background check b. gatekeeper c. interview d. personality test Which of the following rules describes the function graphed belowA) output = inputB) Output = 2Input - 1C) Output = Input + 2D) Output = 3 Input - 2 ILL GIVE BRAINLIEST!!!I dont know what it is, please explain. What volume (in mL) of 3.2 M hydrobromic acid is required to entirely dissolve 19.4 g of lithium metal? Strawbale, Inc. purchases a $600,000 building, paying $400,000 in cash and signing a $200,000 promissory note. What will be reported on the statement of cash flows as a result of this transaction?A. A $600,000 cash outflow from investing activitiesB. A $400,000 cash outflow from investing activities and a $200,000 cash inflow from financing activitiesC. A $400,000 cash outflow from investing activities and a $200,000 noncash transactionD. A $600,000 cash outflow from investing activities and a $200,000 cash inflow from financing activities The parallelogram is shown below I have an area of 135 units. Find the missing base What is range, domain, and is this graph a function? b) The sum of the ages of the father and son is 44 years. After 8 years, the age offather will be twice the age of the son. Find their present ages, Find the answer to 120% of 150 What is y= 4/5x+2 written in standard form? Which branch of government uses the veto power?Which branch of government is the veto used against?