Encapsulation: Encapsulation is a methodology that binds together data and the codes that it manipulates thus keeping it safe from external interference and misuse. An object oriented program contains codes that may have private members that are directly accessible to only the members of that program. Also it may have program codes (methods) that will enable other programs to access these data is a uniform and controlled fashion.
Polymorphism: Polymorphism is a concept whereby a particular “thing” may be employed in many forms and the exact implementation is determined by the specific nature of the situation (or problem). As an example, consider how a frog, lizard and a fish move (“the interface”) from one place to another. A frog may leap ten centimeters, a lizard in a single movement moves two centimeters and a shark may swim three meters in a single movement. All these animals exhibit a common ability – movement – expressed differently.
Inheritance: Inheritance is the process of building new classes based on existing classes. The new class inherits the properties and attributes of the existing class. Object oriented programs models real world concepts of inheritance. For example children inherit attributes and behaviors from their parents. The attributes such as color of eyes, complexion, facial features etc represent the fields in an java. Behaviors such as being a good dancer, having a good sense of humor etc represent the methods. The child may have other attributes and behaviors that differentiate them from the parents.
Visual Basic is event-driven, meaning code remains idle until called upon to respond to some event (button pressing, menu selection, ...). Visual Basic is governed by an event processor. Nothing happens until an event is detected. Once an event is detected, the code corresponding to that event (event procedure) is executed. Program control is then returned to the event processor. Some Features of Visual Basic are
- Full set of objects - you 'draw' the application
- Lots of icons and pictures for your use
- Response to mouse and keyboard actions
- Clipboard and printer access
- Full array of mathematical, string handling, and graphics functions
- Can handle fixed and dynamic variable and control arrays
- Sequential and random access file support
- Useful debugger and error-handling facilities
- Powerful database access tools
- ActiveX support
- Package & Deployment Wizard makes distributing your applications simple
You can download a free copy of Visual Basic 2010 Express Edition here.
No comments:
Post a Comment