Home
Flashcards
Preview
nurol.txt
Home
Get App
Take Quiz
Create
is multible inheritance allowed in interfaces ?
Yes
Can you have multible inheritance in C#
C# like Jave allows only for single inheritance NO multible inheritance
can structures be inherited
no
show an accessor example
public int StudentAge
{
get { return studentAge;}
set {studentAge=value;}
}
what's the order of calls to the constructors?
base class constructors are called first
what does sealed class means
sealed will prevent your class from being inherited by another class
sealed keyword is identical to Java's final keyword
what is the name of the class that all classes are implicitly inherited from ?
object in system namespace
late binding is achieved with ?
polymorphisism,
class Shape{
public virtual void Draw(){}
}
class Circle:Shape
{
public override void Draw(){}
}
static void Main(){
Shape theShape = new Circle();
theShape.Draw(); // late binding circle draw will be called POLYMORPHISM
the namespace keyword is used to
declare a scope , it lets you organize code and gives you a way to create globally unique classes
using keyword is used
to inform the compiler where to search for the definition of the classes that you are about to use in your classes
array is
a collection of values of similar datatype , they are reference type and inherited from System.array
int [] integers = new int[10];
int [] integers = {3,4,6}; //declaring and initializing
foreach is implemented in your class if you derive from the interface called
IEnumerate
Author
telisc
ID
41981
Card Set
nurol.txt
Description
telisc
Updated
2010-10-13T20:57:02Z
Home
Flashcards
Preview