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



if we inherit class in stack so object of stack will store in stack or heap? as class a { int s..

Answer / vikas kumar

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

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Sharp Interview Questions

What is the object class in c#?

0 Answers  


How many types of variables are there in c#?

0 Answers  


What?s a satellite assembly?

2 Answers  


t name of controls, which are displayed same in all browers?

1 Answers   TCS,


Explain manifest & metadata in c#.

0 Answers  






Why do we need dependency injection in c#?

0 Answers  


Why do we need delegates?

0 Answers  


What is array and its types in c#?

0 Answers  


Can you pass value types by reference to a method?

0 Answers  


What is tryparse c#?

0 Answers  


Name some properties of array.

0 Answers  


If all code is written in a try block and write a catch block with Exception type Exception .In that scenario will all the exceptions catched by that catch block? or any exceptions which will not be caught?

3 Answers   Honeywell,


Categories