Is Property Destruction Violence?

Reuters news reported on January 21 that a protest in Atlanta turned violent. Peaceful marchers gathered to protest the killing of an activist by law enforcement. Some demonstrators set a police car…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Interview Question Blogpost 307

1. Discuss in words something you learned in class today or this week.
One of the cool things I learned was being able to add logic to switch between what type of database gets injected into you program. Using SQL light in the development environment, and SQL server in the product environment.
2. Explain the difference between the Stack and the Heap.
While both are used for memory allocation, the stack is the faster more efficient of the two., using a first in first out approach. It stores strongly typed data types and references. When objects from the stack are used, they are passed by value to functions and the like, this means the original variable is not changed. Reference Types are stored in the large, less efficient heap. They are not directly passed into functions, but their references are. These references are pointers to the objects memory location on the heap. So the reference in the stack will not be changed when passed into a function, but the Object in the heap will be changed.
3. Explain the differences between an Interface and an Abstract Class in .NET.
An abstract class allows you to create functionality that subclasses can implement or override. An interface defines functionality, but does not implement it. So a class that inherits an interface must implement every defined value in the interface. A class can extend only one abstract class, it can take advantage of multiple interfaces.
4. What is a delegate in .NET?
A delegate is a type that represents references to methods with a particular parameter list and return type. When you initialize a delegate, you can associate its instance with any method with a compatible signature and return type. You can invoke the method through the delegate instance.
5. Why can’t you specify access modifiers for items in an interface?
Interfaces are meant to define public APIs. Anything that’s private or protected is an internal component, and so does not belong in an interface. It would not make sense to support protected and private members, for something that is specifically meant for other classes to see.
6. System.Object is the parent class of all .NET classes; In other words all types in .NET (whether implicit, explicit, or user-created) derive from the System.Object class. What are the various methods provided to System.Object’s deriving classes/types?
Equals which determines if two object instances are equal. Finalize tries to free resources and mark the object for garbage collection. GetHashCode which returns a hashcode for the object. GetType that returns the exact run time type of the current instance. ReferenceEquals detirmins whether the specified object instances are the same instance. ToString returns a string that represents the current object.

Add a comment

Related posts:

Week 3

Egypt was on its way to being a mid-level nation in The Human Development Index but a spike in Inequality has pushed it significantly down. Looked at broadband availability, noticed there are mostly…

Me quede con ganas de

De nada sirve que lo diga, cuando pude hacerlo no lo hice.. “Me quede con ganas de” is published by Vick Goldar.

Disrespecting Boundaries

Being officially on vacation, I registered for a broking software two days ago, to toy around with it, which is my preferred method of learning about stuff. Obviously, a lot of money can be made that…