L. P. with Microsoft C# - Level 2-Quiz-3
- You have a class the provides and defines some basic functionality that you want to use elsewhere. you can Derive another class from that class to accomplish this.
- Every class in C# derives from a single class. Object is the name of this class.
- You want to create a sub-class from multiple base classes and aggregate their functionality together. A sub-class may only have one base class is the limit.
- : (colon) is the operator that is used to join a base class with its sub-class, and is read as "derive from" or "extends".
- Protected type of accessibility allows access only by the base class and any sub-classes that directly derive from that base class.
- Virtual is the type of method that can have its implementation overridden by a derived class.
- A Virtual Method must have implementation, or a body. An Override method also need to have implementation, or a body.
- You want to create a class that cannot be extended, meaning that no classes may be derived from this class. This type of class is called Sealed.
- Abstract kind of method has no body, or implementation, and can act as a contract, in that any derived class must have an implementation for the specific class methods.
- When a class has an abstract method in it, It must be defined as Abstract by default.
Permalink |
Comments (0) | Hits: 1044 | Time: 22:50:34