Google User Managed Storage
|
Top Ranking Colleges in India, Alphabets Wallpapers collections,english letters wallpaper,corruption perception index 2015,boy and girl love conversation
A Website For Complete Linux OS,Step by Step linux Installtion, Linux Tips and Tricks and Linux Stuff and so on... Connect and sharing here....
This below survey was taken many form many colleges in India. These Top 50 Engineering Colleges in India have Good Infrastructure, Good Environment, Educations , Staff, Placement , Research Activities and other Facilities are good.
These Government Engineering Colleges in India are really good for all kind of stuff like Education , research , Placement and New Innovation Ideas etc... But Getting seat in these colleges are heavy competition in students .....
Indian Institute Of Technology Delhi,Indian Institute Of Technology Bombay,Indian Institute Of Technology Kanpur,Indian Institute Of Technology Madras,Indian Institute Of Technology Kharagpur,Indian Institute Of Technology Roorkee,University Of Delhi,Indian Institute Of Technology Guwahati,University Of Calcutta,University Of Mumbai, National Institute Of Technology,Trichy.
This below survey was taken many form many colleges in India. These Top 100 Engineering Colleges in India have Good Infrastructure, Good Environment, Educations , Staff, Placement , Research Activities and other Facilities are good. If you want to do Engineering as your dream and try out these colleges
|
1.Class
2.Object
3.Inheritance
4.Interface
5.Abstract Class
6.Overriding
7.Polymorphism (or ) Overloading
A class is simply a representation of a type of object. It is the blueprint/ plan/ template that describe the details of an object. A class is the blueprint from which the individual objects are created. Class is composed of three things: a name, attributes, and operations.
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 behavior.
In pure OOP terms an object is an instance of a class.
In Example 2 we can say that the student object, named objectStudent, has created out of the Student class.
Ability of a new class to be created, from an existing class by extending it, is called inheritance.
In Example 3 the new class (IOException), which is called the derived class or subclass, inherits the members of an existing class (Exception), which is called the base class or super-class. The class IOException can extend the functionality of the class Exception by adding new types and methods.
An interface is type definition similar to a class except that it purely represents a contract between an object and a user of the object. An interface cannot be directly instantiated as an object. No data members can be defined in an interface. Methods and properties can only be declared, not defined. To prefix the name interfaces with’I’ like IDisposable, ISerializable, ICloneable, IEnumerator, etc.
void Draw();
double X { get; set; }
double Y { get; set; }
Implementing an interface is simply done by inheriting off the interface and then defining all the methods and properties declared by the interface.
{
set { mX = value; }
get { return mX; }
}
{
set { mY = value; }
get { return mY; }
}
Abstract class can be simply defined as incomplete classes. Abstract classes contain one or more incomplete methods called abstract methods. The abstract class only provides the signature or declaration of the abstract methods and leaves the implementation of these methods to derived or sub-classes. Abstract method and abstract classes are marked with the abstract keyword. An abstract class itself must be marked with the abstract keyword. Since abstract classes are incomplete, they cannot be instantiated. The class inheriting an abstract class and implementing all its abstract methods is called the concrete of the abstract class.
{
get { return tax };
}
{
get { return itemPrice };
}
Override modifier is to modify a method, a property, an indexer, or an event. An override method provides a new implementation of a member inherited from a base class. The method overridden by an override declaration is known as the overridden base method. The overridden base method must have the same signature as the override method. You cannot override a non-virtual or static method. The overridden base method must be virtual, abstract, or override. An override declaration cannot change the accessibility of the virtual method. Both the override method and the virtual method must have the same access level modifier.
public virtual void GetPayCheck()
{
}
public void Work()
{
}
GetPayCheck method;
public override void GetPayCheck()
{
}
public void AdministerEmployee()
{
}
Polymorphism is the ability for classes to provide different implementations of methods that are called by the same name. In example 8 how polymorphism would work, here’s a different class that implements the same interface but has different code. Polymorphism allows us to define methods in a base class and override them with derived class implementations.
public void LogError(Exception e)
{
}
public bool LogError(Exception e, string message)
{
}