Q.1 What is SOLID Principle
Ans. In the Object-Oriented Programming (OOPS), SOLID is an acronym, introduced by Micheal Feather, for five Design principles used to make software design more understandable, flexible, and maintainable. These principles are a subset of many other principles promoted by Robert C. Martin.
There are Five SOLID Principles
1.Single Responsibility Principle (SRP).
2.Open-Closed Principle (OCP).
3.Liskov Substitution Principle (LSP).
4.Interface Segregation Principle (ISP).
5.Dependency Inversion Principle (DIP).
Q.2 What is boxing and unboxing
Ans. Boxing and Unboxing in C# Programming
Boxing is a mechanism converting value type to object type
int j = 123;
// The following line boxes i.
object o = j;
Unboxing is an explicit conversion from the type object to a value type or from an interface
type to a value type
type to a value type
int j = 123; // a value type
object o = j; // boxing
int k = (int)o; // unboxing
Q.3 What is the difference between asp.net c# and mvc.?
ASP.NET framework is a part of .net platform for building, deploying and running
web applications. Now, we can develop a web application by using Asp.Net Web Form
and Asp.Net MVC. In this article, I am going to expose the main difference between
ASP.NET WebForms and ASP.NET MVC.
web applications. Now, we can develop a web application by using Asp.Net Web Form
and Asp.Net MVC. In this article, I am going to expose the main difference between
ASP.NET WebForms and ASP.NET MVC.
Difference between ASP.NET MVC and WebForms
No comments:
Post a Comment