Microsoft Visual C#
Quiz 10 :
Introduction to Inheritance
Looking for Programming Homework Help?
Q32 Q32 Q32
On some occasions, you might want to access parent class data from a child class.Declaring the parent class field as public would violate the principle of information hiding, but declaring it private would make it inaccessible.How can the proper level of security be achieved?
Q33 Q33 Q33
When a derived class contains a method or property that overrides a parent class method or property, how can you use the parent class version from within the subclass? Show an example of a derived class that overrides a parent class method, but then uses the parent class method.