ASP.NET
Programming and Technical
What is shadowing?
Read Solution (Total 1)
-
- With out changing the base structure you are creating the new structure for base class achieved by masking the base class.
For Example:
If you want to create a bank debit account
public class account
{
public int accno{get; set;};
public int accholdername{get;set;};
public decimal balance{get; set;};
public bool credit{get;set;}
}
public class debitac:account
{
}
Customer wants besides with current account what you do?
this can be solve by using shadowing
public class currentac:account
{
public new decimal credit{set;get;}
}
- 10 years agoHelpfull: Yes(1) No(0)
ASP.NET Other Question