You are c# developer who is developing a windows application. you need to provide derived classes the ability to share common functionality with base classes but still define their own unique behavior. which object-oriented programming concept should you use to accomplish this functionality?

Answers

Answer 1
Polymorphism; the concept of one definition, but multiple implementations.
In C#, this is done using the 'abstract' and 'override' keywords.
Example:

abstract class Shape {
    public abstract double area();
}

class Square : Shape {
    private double size;

    public Square(double size = 0) {
        this.size = size;
    }

    public override double area() {
        return size * size;
    }
}

Related Questions

What is a key benefit of the storage space reclamation technique?

Answers

The key benefit of the storage space reclamation technique is that it provides cost savings. It classifies space that is not in use in the thin LUNs, reclaims the deleted storage space from the file system using the array and assigns again to the storage pool.

A _________ consists of a set of computers that interconnect by means of a relatively unsecure network and makes use of encryption and special protocols to provide security.

Answers

virtual private network consist of computers that interconnect by means of a relatively unsecure network and makes use of encryption and special protocols to provide security.

Is a protocol that can be used to secure communications across any ip-based network such as lans, wans, and the internet?

Answers

Internet protocol Security (IPSEC) is a protocol that can be used to secure communications across any IP-based network like lans, wans, and the internet.

The most common type of local correction system is

Answers

The answer is A county-based correctional system.  The most common type of local correction system is a county-based correctional system.  

In order to look up ipv4 and ipv6 dhcp leases, what two files should be viewed?​

Answers

The answers are  /var/lib/dhcpd/dhcpd.leases   &                                                                       /var/lib/dhcpd/dhcpd6.leases
In order to look up ipv4 and ipv6 dhcp leases, The two files that should be viewed are  /var/lib/dhcpd/dhcpd.leases &  /var/lib/dhcpd/dhcpd6.leases                                             

You can use the ________ method to replace an item at a specific location in an arraylist.

Answers

the answer is the ArrayList method

When users create, alter, or drop tables or create or drop indexes, the dbms updates the system catalog automatically.​?

Answers

True.  When users make changes to the database, such as creating, altering, or dropping tables or creating or dropping indexes, the DBMS updates the system catalog automatically.

A _________ is the broadcast of various types of media over the web.

Answers

News Report.
I hope this helps! :)

In a wireless ____ network, devices broadcast directly to each other.

Answers

In a wireless Broadband network

The North American Free Trade Agreement (NAFTA) among Canada, Mexico, and the United States is intended to _____.

Answers

The North American Free Trade Agreement (NAFTA) among Canada, Mexico, and the United States is intended to remove barriers between these three countries.

The agreement came into force on January 1, 1994.NAFTA required the elimination of tariffs on half of U.S. goods shipped to Mexico and the gradual phase out of other tariffs among the U.S., Canada and Mexico over a 14-year period.

Answer: The correct answer is to remove barriers of trade.

Explanation: The North American Free Trade Agreement is the largest trade agreement in the world. The purpose of this agreement was to remove the trade barriers and increase trade between Mexico, United States and Canada.

To delete a method from a class, you not only have to delete the method but also its ______________.

Answers

your Answer would be keyword. Hope this helps.

Which encryption algorithm cannot be broken mathematically and does not require the use of a computer?

Answers

OTP is the encryption algorithm that cannot be broken mathematically and does not need the use of computer.

What kind of documents does publisher handle best?

Answers

MS Publisher is a software which allows you to layout professional / business documents best used for Professional documents, Brochures, marketing materials and even Web Pages depending on the business use case or your requirement. It offers a variety of template dedicated for creating above listed samples and more. It can be converted to universal file format such as PDF as well.

Typing with capital letters and exclamation point in an email is an example of

Answers

Typing with capital letters and exclamation point in an email is an example of poor etiquette.  Take care when using the exclamation mark in your writings as readers can easily misinterpret its undisclosed meaning.

Typing with capital letters and exclamation point in an email is an example of  shout.

we should not use capital letters while writing an email because it is considered as shouting on some one. capital letters are considered as shouting and we know that. Shouting at someone is not polite. Therefore, it is bad netiquette to use all caps on the internet because shouting is not polite.

_____ is published by the U.S. Bureau of Labor Statistics. It provides up-to-date career outlook information. It is no longer available in print but may be obtained at www.bls.gov. Business directories Occupational Outlook Handbook Encyclopedia of Careers and Vocational Guidance Educational directories

Answers

Occupational Outlook Handbook.(OOK) is the correct answer.

Occupational Outlook Handbook (OOH) is the correct answer. It is published annually by the U.S. Bureau of Labor Statistics.

To name a computed field, follow the computation with the word ____ and then the name you wish to assign to the field

Answers

Computed field is a field whose values you derive from existing fields.
 It is a very powerful field module because it enables to add a custom "computed fields" to your content types.
To name a computed field, follow the computation with the word AS and then the name you wish to assign to the field.
The command is:<AS display_name> 

To apply a background color to the slides in a presentation, navigate to the _____ tab.

Answers

Assuming that this is powerpoint, you answer should look like this:

To apply a background color to the  slides in a presentation, navigate to the design tab.

A graphical user interface is a computer program that creates a display format that will allow a user to select commands, call up files, start programs, and do other routine tasks by using a mouse. according to the timeline, one of the first personal computers to use a graphical user interface, complete with a mouse, was released in which year?

Answers

1975 was the year of the of release.

This subsystem defines the logical structure of the database by using a data dictionary or schema. multiple choice data manipulation application generation data administration data definition

Answers

Data manipulation subsystemprovides tools for maintaining and analyzing data
Application generation subsystemprovides tools to create data entry forms and specialized programming languages that combine with common and widely used programming languages
Data administration subsystemhelps supervise the overall database; including maintenance of security, supplying disaster recovery support, and observing the overall performance of database operations

Data manipulation subsystemprovides tools for maintaining and analyzing data

How do you become a hacker? Is there any good websites? Where do you begin? Preferably a white hat.

Answers

I suggest learning and studying technology and the way a computer or a phone works and how it receives info. That way, you will be able to give the device something it won't handle...... I think....

Answer:

learn stuff

Explanation:

how to be hacker? well first you have to learn Linux then you learn python or java then to be a hacker you have to overrun commands to disable the system making the computer not responding and shutting it down making you in control. if you do it in a big business it will be very hard cause there is white hackers who try to stop you with overrunning you with commands selling all your data and making you therefore go to jail

What is one benefit of using object-oriented programming?

Answers

Final answer:

Object-oriented programming enhances modularity and code reuse, making it easier to add new objects without altering existing code, leading to better scalability and maintenance.

Explanation:

One benefit of using object-oriented programming (OOP) is that it allows developers to create modules that do not need to be changed when a new type of object is added. Developers can simply create a new object that inherits many of its features from existing objects.

This makes OOP very modular, with the ability to reuse code components and scale systems more effectively compared to procedural programming paradigms. Object-oriented design principles such as encapsulation and abstraction also contribute to improved code maintenance and flexibility, allowing for the development of more robust and error-tolerant software.

When you pass an argument to a method, the argument's data type must be ____________ with the receiving parameter's data type?

Answers

Any time you pass an argument to a method, the data type arguments must be assignment compatible with data type receiving parameter.

How many dimples are on the titleist pro v1 golf ball?

Answers

Hey and thanks for giving me the chance to serve you
__________________________________________________________ 

There are 392 dimples on a Pro V 1,
Hope this helped.

Have a good day.

What is the smallest unit of measure that the eye can see unaided?

Answers

Some experts believe that the smallest units of measure that can be seen by the naked eye with regular vision and unaided are objects as small as about 0.1 millimeters. However, this cannot be justified or be expressed by means of size measures. This is so because objects with a fixed size are perceived as smaller when viewed from a distance.






A(n) _______ is the most basic type of access query

Answers

Select Query
I hope this helps! :)

Cloud computing is primarily intended to allow users to
A) access data and programs remotely.
B) switch packets with remote computers.
C) register an IP address on their computers.
D) interpret hypertext accurately in browsers.

Answers

The answer should be A, as cloud computing allows you to access your data and apps remotely through a server located elsewhere.

Answer:

A) access data and programs remotely is the correct answer.

Explanation:

Cloud computing is primarily intended to allow users to access data and programs remotely.

Cloud computing is the means of storing data, managing, accessing and processing the data.

Cloud Computing is the use of devices and software to provide a service across the network.

With the help of cloud computing users can locate data and utilize applications from several devices that can reach the Internet.

cloud computing reduces the cost of managing IT, and it provides automated updates.

You are going to buy a computer but first you want to do some research to help you select the best model everfi answer

Answers

Final answer:

The student is asked to perform a statistical analysis to determine if the standard deviation of computer prices is larger than the manufacturer's claim, using a 5 percent significance level and reflecting on the practical implications.

Explanation:

The question hints at the possibility of conducting a statistical analysis to decide whether the standard deviation of computer prices is larger than the manufacturer claims. Using the given data, a hypothesis test can be performed at the 5 percent significance level to determine if the observed standard deviation significantly differs from the claimed $25. It is advisable to consider the importance of the finding for practical purposes, such as whether a larger standard deviation would affect the decision to purchase a particular computer.

In evaluating your options for purchasing the best computer model, significant factors could include price stability, performance, and warranty offerings, among others. Furthermore, it is essential to reflect on your first impressions and do some background research to better understand the context of the computer market before making a decision. After in-depth research, you can better judge which option suits your needs and circumstances.

What does a 1000base t nic use to connect to a network cable?

Answers

 A 1000base t NIC use RJ45 to connect to a network cable. RJ45 stands for registered jack 45, is the ubiquitous Ethernet style data port found on switches, routers and network cards.
It is a standard for a physical interface between customer wiring and telephone company wiring.

Describe how the knowledge and skills you gained in the area of presentation software may help you be a more effective at delivering a presentation.

Answers

With knowledge and skills pertaining to presentation software, a person is able to more effectively convey their messages whilst maintaining time effective production of presentations. Furthermore, they should be able to fully utilize the software's many additional functionalities that a user with little to no experience may not use. 

Final answer:

Gaining proficiency in presentation software like PowerPoint helps in designing professional-looking slides, correctly using various presentation aids, and ultimately delivering an engaging presentation.

Explanation:

Knowledge and skills gained in presentation software like PowerPoint can significantly enhance your ability to deliver an effective presentation. Understanding how to design professional-looking slides is crucial, as it allows you to create visual aids that support your message and assist with audience retention. A well-designed slide can highlight key points and engagingly structure your presentation.

Moreover, being adept at using different types of presentation aids ensures that you can adapt to various speaking contexts and audience needs. These aids can range from charts and graphs to videos and animations, each serving a different purpose. Knowing how to correctly and effectively use these aids is part of planning and delivering an engaging presentation that is both informative and interesting.

The best location for a peripheral such as a printer that a user accesses frequently is ____

Answers

should be located up slightly

The best location for a peripheral such as a printer that a user accesses frequently is within arm's reach of the user in a normal working position.

What are the peripheral parts of the computer?

Terminals, printers, external floppy disc drives and other data storage devices, interface boards, video monitors, external memory expansion cards, keyboards, and other input/output devices that may or may not contain digital circuitry are examples of peripheral devices.

The basic components of a computer system are those that control the system and process data. A computer system can function in the absence of peripheral devices, but it cannot function in the absence of core components. CPU, motherboard, power supply, RAM, and ROM are examples of core components.

Therefore, in a regular working position, the optimal location for a peripheral, such as a printer, is within arm's reach of the user.

To learn more about the peripheral parts of the computer, refer to the link:

https://brainly.com/question/29387194

#SPJ5

Other Questions
Find the equation of the line.A) y= -3/2 x + 1B) y= -2/3 x - 1C) y= 2/3 x + 1D) y= 3/2 x - 1 describe one major flaw of county government Which of the graphs displays the expression |5|? A) B) C) D) a glass jar contains 1 red, 3 green, 2 blue, and 4 yellow marbles. if a single marble is chosen at random from the jar, what is the probability that it is red All of the students in Ms. Osbourne's class like pizza. Jeff is a student who likes pizza. Therefore, Jeff is a student in Ms. Osbourne's class. In the following reaction, is the nitrogen reduced or oxidized? 2Cu2O + 2NO 4CuO + N2 Are the statements about hydrogen bonding of the compound below with water true or false? this compound can act as a hydrogen-bond donor. this compound can act as a hydrogen-bond acceptor How did the Congressional Reconstruction plan, the Wade-Davis Bill, differ from President Abraham Lincolns plan?A.It required 50 percent of a Southern states registered voters to take an oath of loyalty to the Union. B. It granted amnesty to all Southerners, including higher level Confederate leaders.C.It called for the Union to immediately take control of agricultural lands in the South.D.It allowed former Confederate officials to participate in government activities.NextReset if your frog is an immature female, you will find 2 grayish or pinkish ovaries in either side of the abdominal cavity. The testes of the male are in the corresponding positions. Attached to these organs are yellow fat bodies. What is the function of fat bodies? How did the portuguese gain control of most of southern asia sea trade? Early voting in texas has been shown to produce ________ in voter turnout.a.a drastic dropb.a modest dropc.a modest increased.a significant increasee.no discernible change What is illustrated in the cells to the right of the Fourth Quarter column? A lawn is shaped like a parallelogram with a base of 32 feet and a height of 15 feet. Covering the lawn with grass will cost $2.60 per square foot. How much money will it cost to cover the lawn with grass? The rate of incarceration in prison increased from 27 per 100,000 women in 1985 to 57 per 100,000 in 1998. Men still outnumber women in the inmate population by a factor of about 14 to 1, but the gap is narrowing from 17 to 1 a decade ago. Women constituted only 4 percent of the total prison and jail population in the United State in 1980 but more than 6 percent in 1998.The topic of the passage isA. The Increasing Number of Women in JailB. Men Versus Women in JailC. Overcrowded Prisons.D.Incarceration in America If you want to analyze the total annual production of goods, services, and structures within a nation, which economic figure should you reference? Presidential primary elections are held to select a)the members of the electoral college. b)state delegates to the national conventions. c)a political party's cabinet officials. d)a political party's policy platform. Which statement most accurately describes a major criticism Of the electoral college system What did islamic fundamentalism in the middle east and evangelical christianity in the united states have in common at the beginning of the twenty-first century? Only __________ has the power to pass laws pertaining to Native Americans. A. Congress B. the Senate C. the President of the United States D. the House of Representatives Please select the best answer from the choices provided LD50 is used to express _____.blood-alcohol levelslevels of impairmenttoxicity of toxins and poisonsthe amount of illicit drugs found in the system