maloy adhikari


{ City } kolkata
< Country > india
* Profession * software developer
User No # 34736
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 # 8
Users Marked my Answers as Wrong # 0
Questions / { maloy adhikari }
Questions Answers Category Views Company eMail




Answers / { maloy adhikari }

Question { Satyam, 4298 }

If i have a page where i create an instance of a dll and
without invoking any method can I send values to next page ?


Answer

By IsCrossPostback Property we can send values to the next
page..
Exam::
Let There Are 2 Page page1.aspx & page2.aspx.....I wanna
send value of a textbox from page1 to page2.
Step 1::
In aspx of page1,




Step2::

In Pageload() of page2.aspx

pageload()
{
if(PreviousPage!=null && PreviousPage.IsCrossPostBack)
{
TextBox text=PreviousPage.FindControl("Textbox1")
as TextBox;
if(text!=null)
{
Label1.Text=text.Text;
}
}

}

.........Here Label1 is a label of page2.Where i show the
value of 1st page's text box value....

Is This Answer Correct ?    1 Yes 0 No

Question { IBM, 9179 }

What is shadowing?


Answer

Shadowing is a concept of polymorphism usage in Object
Oriented Programming. This is a concept related to
over-riding functions at run-time or making a shadow of the
object's methods in the inherited classes.

Is This Answer Correct ?    0 Yes 0 No


Question { Syntel, 3776 }

How to write test case (Unit test plan)


Answer

There Are 3 types-
1)Positive test case:Correct data,correct result.
2)Negative test case:Missing data,Proper handle.
3)Exception test case:Exception thrown & catch properly.

These are mainly test case to unit test plan..

Is This Answer Correct ?    3 Yes 0 No

Question { 13312 }

what are abstract classes? what is overriding?


Answer

abstract Class: I find a Proper ans there.

So Posting For Overriding.
Method Overriding:

Method overriding occurs when child class declares a method
that has the same type arguments as a method declared by one
of its superclass.
Method overriding forms Run-time polymorphism.

Eg1:
Class Maloy
{
virtual void hello()
{ Console.WriteLine(“Hello from Maloy”); }
}
Class Adhikari: Maloy
{
override void hello()
{ Console.WriteLine(“Hello from Adhikari”); }
}
static void main()
{
parent objmaloy = new Adhikari();
objmaloy .hello();
}
//Output
Hello from Adhikari.
..................
Hope You Understand This.

Is This Answer Correct ?    4 Yes 0 No