adddesign
OOP

By Think Positive, Get Positive on 8:01:00 PM

Filed Under: , , , ,

OOP

OOP is nothing but Object Oriented Programming. C# is an Object Oriented Programming Language.

OBJECT:

  • Object is the key to realize Object oriented Programming concept.
  • Software Objects are just as same as real world object i.e. both of them are having their own state and behaviour.
  • Here, the objects are stores its state in fields and exposes its behavior in Methods.
  • Methods operates on an objects internal state and serve as the primary mechanism for object to object communication.
Benefits of Object:
  • Modularity - The source code for an object can be written and maintained independently of the source code for the other object.
  • Hiding the irrelevant data by interacting with the methods of object.
  • Reuse of Code
  • debugging and plugability- If there is any error in particular object, we can easily replace the object with other.
Significant Features of OOP:

There are three most important features of Object Oriented Programming concept. They are
  • Encapsulation
  • Inheritance
  • Polymorphism
Encapsulation:
  • It is the programming mechanism, that an object has something like shell around it protecting the attributes or status variables are being accessed from the outside of an object.
  • The method of an object only can access the attributes or status variables, can read and change the value of it.
Inheritance:
  • Inheritance is the process by which one object can acquire the properties of other object.
  • It supports the concept of hierarchical classification.
  • Inheritance means that the derived class inherits all attributes and methods from its super class, the class from which it is derived.
Polymorphism:
  • The Polymorphism is the greek word, means many form.
  • The polymorphism is the quality that allows interface to access the general class of actions.
  • The object must know itself what has to be done and how, nobody cares as long as the object appears on the screen.


goto First C# program

0 comments for this post