radix


{ City } thane
< Country > india
* Profession * student
User No # 41006
Total Questions Posted # 0
Total Answers Posted # 4

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 11
Users Marked my Answers as Wrong # 5
Questions / { radix }
Questions Answers Category Views Company eMail




Answers / { radix }

Question { NIIT, 12932 }

What is use of
super class


Answer

super class is also called as the base class or as the
parent class.

we can inherit methods of base class to our derived class
by using inheritance, where derived class is also callled
as the child class if and only if it is derived from the
parent

Exmaple you are the derived class of your parents who are
the base class for you, few of their methods
(looks,emotions,way of speech etc) are into you but few of
our methods(style,behaviour etc) cannot be into your parents

Is This Answer Correct ?    4 Yes 0 No

Question { 8874 }

What is the difference between class and abstract class?


Answer

class is a container for methods, and i can access those
methods by creating the object of my class, and then using
the dot operator with my object to access those methods.
example: radix obj = new radix();
[where class name is radix, obj is the object of my class
radix]
now assume that my class contains a method to add two
integer values and the name of that method is add(), i can
access add by telling the compiler
example: obj.add();

but sometimes a situation comes where i do not want to
create an object of my class, their i can use the abstract
keyword
this is because the methods of my base class can be
accessed by my derived class by using : in c# so their is
no use of creating the object of the base class because by
default every method can be acessed of the base class so
instead of creating object of the base class i can create
the object of my derived class and can access function of
my base class...

if u still have confusion try this code out

using System;
abstract class Radix
{
public void fun()
{
Console.WriteLine("hello dude");
}

}
class me:Radix // inheriting base class radix
{
void funt()
{

Console.WriteLine("hi, dude");
}
static void Main()
{

me obj = new me(); //derived class object
obj.fun();//accessing base class method
obj.funt();
Console.Read();
}

}

i hope this exaqmple helps for further help contact me on
my mail id
mailme.rsharp@rediffmail.com
Thanks and Regards,
Radix.

Is This Answer Correct ?    1 Yes 1 No


Question { 6662 }

Types of polymerphism and explain about dynamic
polymerphism?


Answer

Static polymorphism and Dynamic Polymorphism are the two types of polymorphism

Dynamic Polymorphism: decisions of function execution is made at runtime

Is This Answer Correct ?    1 Yes 2 No

Question { NIIT, 9108 }

Can overrride the Main method


Answer

No u cant

Is This Answer Correct ?    5 Yes 2 No