Results 1 to 4 of 4
  1. #1

    Default About Classes / OOP


    Istoryans, knahanglan ba jud na every time na mohimo ka og system or program e classes jud..mao jud ni cya ang proper?naanad ko sa VB gd..nga drag and drop ra then click ra nmu ang mga forms nya butangan event..unsa may pros and cons ani in your own understanding between mag class ka or dli lng.

  2. #2

    Default Re: About Classes / OOP

    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.

  3. #3
    Elite Member
    Join Date
    Jun 2010
    Gender
    Male
    Posts
    1,018

    Default Re: About Classes / OOP

    To add lang...

    Though they will say, when you use OOP you will have a lot more files to maintain.

    The concept really is, after creating a class with a certain functionality,
    after proper unit testing and some organization,
    you can actually forget about it and just remember
    that the certain object has that functionality for you to use whenever you like.

    If you like from your approach, you can start with the OOP approach by doing something like.
    (Bantayi lang akong language gi-gamit, it may be mixing with other languages and not VB at all.)
    Code:
    public function doAction(Event e)
          e.getScreen.setValues( new ActionDoer(e.getScreen.getValues() ).getValues() );
          refreshScreen();
    end function
    notice that the ActionDoer object can be called from any other event with the same functionality.

  4. #4

    Default Re: About Classes / OOP

    Quote Originally Posted by messerchtmitt View Post
    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.
    We'll said naka relate ko sir, topic ni sa java namo ron. Real-world xa makes your life easier because of the IDE's

  5.    Advertisement

Similar Threads

 
  1. your thoughts about this "ONLINE TOP CLASS HOOKER :-) )
    By nitwit in forum General Discussions
    Replies: 14
    Last Post: 06-17-2011, 02:59 PM
  2. What do you hate about CLASS RINGS?
    By mojojo in forum Campus Talk
    Replies: 145
    Last Post: 05-23-2011, 06:41 PM
  3. Replies: 7
    Last Post: 11-02-2009, 05:12 PM
  4. Replies: 17
    Last Post: 11-01-2008, 10:00 PM
  5. Antipoverty ra? How about PRO-middle Class diay?
    By giddyboy in forum Politics & Current Events
    Replies: 14
    Last Post: 01-06-2008, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top