what is object based programming?
Once in viva the examiner asked me is VB object based or object oriented?
I replied Object oriented he said No
SO do you guys have any explanation?
Thank you.
what is object based programming?
Once in viva the examiner asked me is VB object based or object oriented?
I replied Object oriented he said No
SO do you guys have any explanation?
Thank you.
VB is object based and languages like C++, Java are object oriented.
I think it is because,
In VB the objects, their properties and methods are already declared and defined and the programmers/developers have to instantiate and use those objects.
In C++ or Java, the objects, their properties and methods are first designed, then declared and defined and also instantiated by the programmers/developers themselves.
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.
-sutnarcha-
Thank you, But VB comes under Object Oriented Programming Language!
In a technical sense, the term "object-based language" may be used to describe any programming language that is based on the idea of encapsulating state and operations inside objects. Object-based languages need not support inheritance or subtyping, but those that do are also said to be object-oriented. Object-based languages that do not support inheritance or subtyping are usually not considered to be true object-oriented languages.
VB supports both objects and classes, but not inheritance, so it does not qualify as object-oriented.
Last edited by jainbrijesh; 05-22-2007 at 07:39 AM.
Regards,
Brijesh Jain
---------------------------------------------------------
Connect with me on Skype: jainbrijesh
Google Plus : jainbrijeshji
Hello Mr.Jain,
VB is Object Oriented Programming language and it does support inheritance by using intreface. And you cannot say VB is not OOP language since it does not support inheritance because Java also does not support multiple inheritance directly (but we can use multiple inheritance using interface) so will disqualify Java also?
VB6 is object based since you cannot create new objects in it, but can use objects made from other languages in it and can inherit from them. VB.Net is object oriented.
The biggest change from VB to VB .NET is, VB .NET is Object-Oriented now. VB .NET now supports all the key OOP features like Inheritance, Polymorphism, Abstraction and Encapsulation. We can now create classes and objects, derive classes from other classes and so on. The major advantage of OOP is code reusability and the following
1.Emphasis on data rather than procedure
2.Programs are divided into Objects
3.Data is hidden and cannot be accessed by external functions
4.Objects can communicate with each other through functions
5.New data and functions can be easily added whenever necessary
6.Follows bottom-up approach
All the above are supported by object oriented rather than object based language.Hope this helps
Last edited by Lavanyaaru; 04-17-2008 at 12:22 PM. Reason: Added a comment
* To understand encapsulation and data hiding.
* To understand the notions of data abstraction and abstract data types (ADTs).
* To create Java ADTs—namely, classes.
* To be able to create and use objects.
* To be able to control access to instance variables and methods.
* To understand the use of the this reference.
* To be able to use class variables and methods.
* To appreciate the value of object orientation
Last edited by sumitjayant; 04-25-2008 at 04:42 AM.
c++,java, vb.net is a object based programming language
the bseclay object oriented progranning language a class and object
bethout class and object can not run any program