Envié una solicitud electrónica. Acudí a una entrevista en HARMAN (Bengaluru) en mar 2024
Entrevista
The first round has been technical, possibly focusing on syntax and basic concepts but presented in a tricky manner. This suggests that the interviewers might have been testing not just your knowledge of programming languages but also your ability to think critically and solve problems effectively.
Which constructor will execute first
public Class A
{
static A()
{
Console.WriteLine("Hello! Static constructor is called");
}
public A()
{
Console.WriteLine("Hello! Non-Static constructor is called");
}
output of below code
class A
{
public void show()
{
Console.WriteLine("Hello: Base Class!");
Console.ReadLine();
}
}
class B : A
{
public new void show()
{
Console.WriteLine("Hello: Derived Class!");
Console.ReadLine();
}
}
output of below code
class A
{
public virtual void show()
{
Console.WriteLine("Hello: Base Class!");
Console.ReadLine();
}
}
class B : A
{
public override void show()
{
Console.WriteLine("Hello: Derived Class!");
Console.ReadLine();
}
}