Skip to main content

Posts

Showing posts from January, 2017

Abstract Class in C#

              ABSTRACT CLASS Definition Abstract classes are classes which cannot be instantiated ie. We cannot create object of abstract class. It acts as base class for other class. An abstract class contains abstract as well as non abstract member functions, the abstract member functions are implemented by the derived class. Purpose The purpose of abstract class is to provide basic  or default functionality  as well as common functionality that multiple derived class can share and override. Properties ·          Abstract class cannot be instantiated ·          It can be used as base class only ·          It contains both abstract as well as non abstract member functions. ·          Abstract class is not sealed as sealed  access modifier prevents a cla...

Interface in C#

Interface An interface is a signature.It is not a class  Properties It contains definitions or signature of a method and the implementation of these methods are provided by the class inheriting the interface A class can implement more than one interface , so interface can be used to implement multiple inheritance in c# No object of interface can be created It contains only properties, indexers, methods, delegates and events signature. It cannot contains constants members, constructors, instance variables, destructors, static members or nested interfaces. Members of an interface cannot have any access modifiers even public. Implicitly, every member of an interface is public and abstract. Also, you are not allowed to specify the members of an interface public and abstract or virtual It cannot be instantiated but it can be referenced by the class object which implements it. Also, Interface reference works just like object reference and behave like as object. IStore ...

Anjular JS Interview Questions

Angular JS Interview Questions What is AngularJS ? “AngularJS is a JavaScript framework which simplifies binding JavaScript objects with HTML UI elements.” Let us try to understand the above definition with simple sample code. Below is a simple “Customer” function with “CustomerName” property. We have also created an object called as “Cust” which is of “Customer” class type. function Customer()  { this.CustomerName = "AngularInterview"; } var Cust = new Customer(); Now let us say the above customer object we want to bind to a HTML text box called as “TxtCustomerName”. In other words when we change something in the HTML text box the customer object should get updated and when something is changed internally in the customer object the UI should get updated. So in order to achieve this communication between UI to object developers end up writing functions as shown below. “UitoObject” function takes data from UI and sets it to the object while the other function ...