Posts

Object Oriented Programming Using C# - Step 1

Object != Class A  class  is code which contains  properties  (data management)and  functions  (actions on that data). Sample Class :  Public class Customer  {      public string FirstName {get;set;}  //property      public int Age {get;set;}  //property            public int ValidateAge();  //functions } An  object  is an instance of a class .It is created using a  new  keyword . Sample Object :  var sampleObject = new Customer(); Hint : On terminating an application , the instance i.e object state is gone but the class still exist . Once a class is created we can any number of unique objects from the class with different decorations (properties and functions ) . Oh !! that's pretty simple , but is business object referred to as a class !! Yeah that's correct .So we are pretty clear about what a class an...
Recent posts