what is new modifier in C#

Answer Posted / pratyaya kumar ghosh

C# allow redefinition of inherited methods in the derived
classes at the cost of hiding the inherited ones using new
modifier.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define social class?

594


what are the different types of qualifier in java?

1830


What is object and class in oops?

573


What are the components of marker interface?

594


Advantage and disadvantage of routing in telecom sector

778






Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

621


Why is there no multiple inheritance?

560


What is oops and why we use oops?

569


Which type does string inherit from?

608


What is polymorphism give a real life example?

550


Why do we use encapsulation in oops?

508


What is object in oops?

606


What is persistence in oop?

655


What is meant by multiple inheritance?

729


What is basic concept of oop?

690