Escolar Documentos
Profissional Documentos
Cultura Documentos
void fight();
}
interface CanSwim {
void swim();
}
interface CanFly {
void fly();
}
class ActionCharacter {
public void fight() {
}
}
String Builder..
1.This is also the class used to handle strings.
2.Here Append method is used.
3.Here, Stringbuilder object is used.
4.Insertion is done on the existing string.
5.Usage of StringBuilder is more efficient in case large amounts of string manipulations have to be
performed
user control
1)it extension is .ascx.
2)it can be more than one on single web page.
3)it doesn't contain Contentplaceholder.
4)it doesn't work like a fixed template.it can be
display in diffrent manner in diffrent page.
MasterPage:
1) it extension is .Master.
2)it used like a template.
3)it contain ContentPlaceHolder.
Generics are the new feature in the c# 2.0. They introduce the concept of Type parameter.
This makes it possible to classes and methods that differs the specification of one or more
types until the class or method is declared and used by the code, which will be using it.
Generic helps us to maximize the reuse of code, Type safety and better performance.
Generics are most commonly used to create a collection. There are many new generic
collection classes in the System.collection.Generics namespace. These classes are advised
to be used for type safety and better performance over araylist.
We can also create our own Generic interface, classes, methods, events and delegates.
Information on the types used in a generic data type may be obtained at run-time by
means of reflection
Here if want we can also initialize the class to be of any other type like a user defined
class. For example
one of the most simple, versatile and effective languages used to extend functionality in websites. Uses
range from on screen visual effects to processing and calculating data on web pages with ease as well as
extended functionality to websites using third party scripts among several other handy features, however
it also possesses some negative effects that might make you want to think twice before implementing
Javascript on your website. Let's look at some of its pros and cons.
Advantages
• Javascript is executed on the client side
This means that the code is executed on the user's processor instead of the web server thus
saving bandwidth and strain on the web server.
Disadvantages
• Security Issues
Javascript snippets, once appended onto web pages execute on client servers immediately and
therefore can also be used to exploit the user's system. While a certain restriction is set by
modern web standards on browsers, malicious code can still be executed complying with the
restrictions set.