Monthly Archives: November 2017

Interview Questions on Inheritance in C#.Net

By | November 19, 2017

Interview Questions on Inheritance in C#.Net 1) What is inheritance hierarchy? In Inheritance, The class which derives fundamental functionality from base class (Parent class) is called as derived class (Child class). This derived class can also be act like base class for another class. There for, it is possible to create tree-like structure that illustrates… Read More »

Advantages of method Overloading in C#.Net

By | November 19, 2017

Advantages of method Overloading in C#.Net Or When/Why to Use Method Overloading in C#.Net Suppose you get one program to create a method which can do sum of two numbers, three numbers & four numbers by passing parameters. So you will end up writing following methods, Public void SumTwoNumbers(int a, int b) { } Public… Read More »

Polymorphism in .Net and Types of Polymorphism in .Net

By | November 18, 2017

Polymorphism in .Net and Types of Polymorphism in .Net Polymorphism means having more than one form. It means same operation may behave differently on different classes. It is classified into compile time polymorphism or early binding or static binding and Runtime polymorphism or late binding or dynamic binding. 1) Static/early Binding /Compile Time Polymorphism: The mechanism… Read More »

What is Encapsulation

By | November 17, 2017

What is Encapsulation? Abstraction Vs Encapsulation It’s wrapping of data members and functions into a single unit called as class. An encapsulated object is often called an abstract data type. Advantage: Encapsulation can protect your data from accidental corruption Example: Let’s take example of substring() function which returns the string based on the start index and… Read More »

What is Abstraction in C#.net

By | November 17, 2017

What is Abstraction in C#.net Abstraction refers to the act of representing essential features without including the background details or explanations. Abstraction defines way to hide your data and members from outside world. This is achieved by means of access specifies. e.g.: Interface Abstraction is used to create a common set of methods that might… Read More »

enable disable kendo datepicker in MVC

By | November 17, 2017

Suppose you have a kendo Datepicker on UI and you want to disable / enable it on some click events then just use below syntax to enable disable kendo datepicker in MVC. For Enabling use below syntax, $(‘#date1’).data(‘kendoDatePicker’).enable(true); For disabling kendo DatePicker control use below syntax, $(‘#date1’).data(‘kendoDatePicker’).enable(true); Here $(‘#date1’) is the control name of datepicker,… Read More »

How to set a default value for an existing column in sql server

By | November 9, 2017

How to set a default value for an existing column in SQL server Syntax: ALTER TABLE {TABLENAME} ADD {COLUMNNAME} {TYPE} {NULL| NOT NULL} CONSTRAINT {CONSTRAINT_NAME} DEFAULT {DEFAULT_VALUE} [WITH VALUES] For Example: ALTER TABLE EmployeeMaster ADD City NOT NULL CONSTRAINT EmpMaster_City DEFAULT ‘Pune’ Click here for more SQL Tutuorials