
Originally Posted by
messerchtmitt
Visual Basic sa una kay wala kinahanglan ug class kay dili cya purely an OOP language, meaning procedural cya. Karon sa mga bag-o na .NET like C# or VB, C++, JAVA kay purely OOP. Ang advantage sa OOP kay mubo ra ang code, mao na in need cya ug Classes. Mao ni iya common features,
Inheritance - classes can inherit other classes. The new classes, known as subclasses (or derived classes), inherit attributes and behavior of the pre-existing classes, which are referred to as superclasses,
Encapsulation - restricting access to some of the object's components or known as data hiding or bundling of data with the methods (or other functions) operating on that data,
While the Polymorphism has the ability to create a variable, a function, or an object that has more than one form.
Now your question is up to you whether you go for Procedural or OOP. additional advantage in OOP, your code is robust, secured and short in MVC architecture based on the basic features sa OOP.
In comparison between procedural and OOP, procedural breaks down the programming task into collections of variables, data structures and sub routines while the OOP is the break down of programming task into classes with each "class" encapsulating its own methods (subroutines). The most important distinction is whereas procedural programming uses procedures to operate on data structures, object-oriented programming bundles the two together so an "object", which is an instance of a class, operates on its "own" data structure. Below is the nomenclature,
Procedural Object-oriented
procedure method
module object
procedure call message
variable attribute
I would recommend use the OOP.