Monday, 26 August 2013

Difference between Abstract Class and Interface - .Net Programming Classes in SLA Chennai

sla jobs tnagar chennai





Interfaces are similar to abstract classes in that they both provide a template that you can use to create new classes. The difference is that interfaces don't provide any implementation of class members, whereas abstract classes can implement members that then become common to all the classes derived from them. When you implement a particular interface in a class, instances of that class can be used for any argument or variable declared as that interface.

Message passing is also known as interfacing, and describes the communication between objects using their public interfaces. There are three main ways to pass messages. These are using methods, properties, and events. A property can be defined in a class to allow objects of that type to advertise and allow changing of state information, such as 'TopSpeed' property. Methods can be provided so that other objects can request a process to be undertaken by an object, such as Steer() method. Events can be defined that an object can raise in response to an internal action. Other objects can subscribe to these so that they can react to an event occurring.

To know more about OOPS concepts and their application in .NET programming, you can join an IT Training institute. SLA IT Employment Training Company in Chennai conducts courses in .NET. Drop in at SLA for a free career counselling. For more details visit SLA Chennai or dial (91 44) 4200 5050/90.

No comments:

Post a Comment