classical way of program and oop program
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: classical way of program and oop program

  1. #1
    Join Date
    Jul 2007
    Posts
    71

    Question classical way of program and oop program

    I'm new to OOP technology.

    I heard about 2 tier and 3 tier architectures (layers). I read some article about that.
    but from that I couldn't understand why they do like that.

    ok, now let see

    If I want to update my records (It has 5 fields). they create three layers for that. If they want to add one or more field(s), they need to modify all the 3 layers.

    In classical way we can easily do that.

    (If we consider VB and VB.Net)

    but one thing I could undedrstand in OOP, function is good (I mean class)

    can you suggest any article about OOP programs against classical way of programs.

    one thing I know, I couldn't really understand the concept of class in OOP

    OOP is a powerfull technology.


    I really want to change my classical way of writing programs. that's why I ask.

    can you give a good article about this, I really apreciate that.

    -thanks.
    Last edited by pragashan; July 9th, 2007 at 07:50 PM.

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,987

    Re: classical way of program and oop program

    2-tier is Client-Server. one of each.
    3-tier has many clients going to one machine(a server, as well as the main client). It is the 2-tier client.

    Access bogs with 5 users. With 3 tier, only one user hits the db.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: classical way of program and oop program

    Quote Originally Posted by pragashan
    I heard about 2 tier and 3 tier architectures (layers). I read some article about that.
    but from that I couldn't understand why they do like that.
    The reason why they do it is because it enables to encapsulate the desired functionality of each layer separately. And this way if you change anything in Data Tier, then it shouldn't affect the presentation tier.

    Quote Originally Posted by pragashan
    If I want to update my records (It has 5 fields). they create three layers for that. If they want to add one or more field(s), they need to modify all the 3 layers.
    Well then this is wrong design.

    Quote Originally Posted by pragashan
    In classical way we can easily do that.

    (If we consider VB and VB.Net)

    but one thing I could undedrstand in OOP, function is good (I mean class)

    can you suggest any article about OOP programs against classical way of programs.

    one thing I know, I couldn't really understand the concept of class in OOP

    OOP is a powerfull technology.


    I really want to change my classical way of writing programs. that's why I ask.

    can you give a good article about this, I really apreciate that.

    -thanks.
    Class is nothing but a logical construct of an object. You define how your object behaves, what kind of properties it has in a class. More like an Employee class can have properties like Name, Age, Salary, Pension, Address, etc. And he can have methods like GiveSalary, Fire , Promote, etc. Now this class can represent 1000 employees of a particular company.

    You can do a search here on CG to get more insight on OOP. I will try to get you some links here. Also try search on www.wikipedia.com, you can find lot of material there too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center