C#.NET - Explain how to create windows forms using visual
inheritance - June 05, 2009 at 11:00 AM by Shuchi Gauri
Explain how to create windows forms using visual inheritance.
Steps:
a. Create a windows form called the basewindow
b. Add a menu bar on this form
c. Right click on the solution explorer and select add new item
d. Select inherited form
e. From the dialogue box choose basewindow form.
f. Name the new form as the childform
g. Now the new childform would have a menu from the baseform.
h. We can place as many controls on baseform as we want to.
Also read
Implementation inheritance is achieved when a class is derived from another
class in such a way that it inherits all its members.................
An Association is a relationship between similar objects or objects with common
structures.................
Polymorphism is when a class can be used as more than one type through
inheritance. It can be used as its own type, any base types, or any interface
type if it implements interfaces................
An Abstract class is only used for inheritance. This means it acts as a base
class for its derived classes. One cannot use it to create
objects.................
Class methods and properties must be stated as Overridable to allow
inheritance...................
|