if we inherit class in stack so object of stack will store
in stack or heap? as
class a
{
int s;
public aa(){}
}
stack mystack:a
{

}
mystack obj;

ans: about obj

Answer Posted / vikas kumar

we should initialize the object with (new) key word.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use methods in c#?

561


What is a private class in c#?

497


What is a c# delegate?

607


What is xpath in c#?

485


Please explain value types and reference types used in c#?

478






What is cshtml?

526


What is get set in c#?

565


What is a boolean c#?

477


What is var c#?

493


What is regex replace in c#?

513


What are the different types of assembly?

568


How to implement delegates in c#.net

550


These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.

2510


Explain manifest in c#.

524


If a child class instance is created, which class constructor is called first - base class or child class?

510