MVC Notes
MVC Notes
MVC Notes
ASP.Net / OOPS
What
o
o
o
o
o
OOPS
is solid ?
Single responsibility,
Open-closed,
Liskov substitution,
Interface segregation
Dependency inversion
Class
o It is a collection of objects.
Object
It is a real time entity.
An object can be considered a "thing" that can perform a set of related activities.
The set of activities that the object performs defines the object's behaviour
Destructor
o Destructor in c# is a special method of a class which will invoke automatically
when an instance of the class is destroyed
o
o
Private Constructor
o Private constructor in c# is used to restrict the class from being instantiated when
it contains every member as static.
o Private Constructor used for to restrict user to create object of class.
Static Constructor.
o Static constructor in c# is used to create static fields of the class and to write the
code that needs to be executed only once.
Copy Constructor.
o Copy constructor in c# is used to create new instance to the values of an existing
instance.
Constructor overloading
o In c# we can overload constructor by creating another constructor with
same method name and different parameters.
What is Interface
o An interface is not a class. It is an entity that is defined by the word
Interface. An interface has no implementation; it only has the signature or
in other words, just the definition of the methods without the body.
What is Generalization?
o