Results 1 to 3 of 3

Thread: OOPS example

  1. #1
    MarkWilson is offline Member
    Join Date
    Jun 2008
    Location
    us
    Posts
    47
    Rep Power
    0

    Default OOPS example

    hi its Simple Q i know that but plz give me the Exact ans with proper Example
    can u tell me a real word examples which match with OOPs concept .
    it must not be related to computer and all that.

    Except Bike Example
    Last edited by MarkWilson; 09-22-2008 at 01:23 PM.

  2. #2
    jason wang is offline Member
    Join Date
    Sep 2008
    Posts
    16
    Rep Power
    0

    Default

    I don't understand your meaning of OOPs. However, I think that you mean the Object oriented programming. For example, the car is object. You can use java to represent the object.

    public class car{


    }

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Think in this way. Say you have a collection of vehicles. In more depth what you can think about it.

    Actually there are different types of vehicles, and you can group them in different ways. Simply like this,

    Vehicles
    - Deesal
    -- Jeep
    --- 2WD
    --- 4WD
    -- Lorry
    --- etc
    -- etc
    --- etc
    - Petrol
    -- Car
    -- etc
    So ultimately what you can do is, common features are able to use in different locations.

Posting Permissions

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