Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6883797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:25:39+00:00 2026-05-27T05:25:39+00:00

I’ve found a lot of information on object oriented programming, but none of it

  • 0

I’ve found a lot of information on object oriented programming, but none of it seems to go into much detail. They always give you the shape example where cirlce, square, and retangle implement the interface. That’s easy. I’m looking for something more real life and deeper into the process.

Does anybody have any good resources that are pretty in-depth? Or even code samples would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:25:40+00:00Added an answer on May 27, 2026 at 5:25 am

    That’s a very broad question… Here’s just a few links for you:

    http://en.wikibooks.org/wiki/Object_Oriented_Programming

    http://www.amazon.com/Object-Oriented-Programming-Peter-Coad/dp/013032616X

    @Frankie – I’ve edited this for you having seen your comment. You’re question is still very broad, but I’ll try to provide a quick (very loosely thought) example of modeling some objects. The language I’ll use is C#, though you can do it any OOP language you like.


    We use Interfaces and Base Classes to represent very basic models. One of the defining differences between and Interface and a Base Class is that an Interface cannot be instantiated (think of it as a blueprint that cannot physically exist, just a design on paper)… a Base Class however can be instantiated (it can exist, and might be considered a prototype). Let’s go from there…

    Say we want to model vehicles… airplanes, cars, motorcycles, bicycles, etc. In our modeling brain we recognize that a Vehicle is the root of everything. Let’s start then by defining a blueprint that works for all types of vehicles. For that we’ll use an Interface

    interface IVehicle
    {
        string Make;
        string Model;
        int Year;
    }
    

    Our interface now says, any object we build that implements this interface must have a Make, Model, and Year property. Now cars, bikes, motorcycles, etc. pop into our head, and we want to make classes for them… but we realize, lots of these vehicles have things in common. Let’s make a prototype for all LandVehicles, and for that we’ll use a Base Class that implements our blueprint interface IVehicle

    public class LandVehicle : IVehicle
    {
        // We must physically implement the required members of the interface.
        public string Make { get; set; }
        public string Model { get; set; }
        public int Year { get; set; }
        // Then we can add things specific to land vehicles.
        public int NumberOfWheels { get; set; }
        public int TopSpeed { get; set; }
    }
    

    Now we have a prototype to build from. Let’s design a Car and a Cycle

    public class Car : LandVehicle
    {
        // because LandVehicle is a real object, we do not have to re-implement its memebers,
        // we can just add to them:
        public int MaxPassengers { get; set; }
        public bool IsLuxury { get; set; }
        public string FuelType { get; set; }
    }
    
    public class Bicycle : LandVehicle
    {
        public string Type { get; set; } // mountain, race, cruiser, etc.
        public int NumberOfGears { get; set; }
    }
    

    With that, we can instantiate Cars and Bicycle objects… but by using Base Classes, we could create many other types of LandVehicles without having to add our basic properties to each one. This is one of the things than makes OOP so extensible.

    Furthermore with our Interface, we left it open enough to make other base classes, perhaps WaterVehicles, AirVehicles, etc… and thus classes that derive from them.

    This is just the very tip of the iceberg, and a rather off-the-top-of-my-head example, but it should get you started. If you have more specific questions or a specific scenario you’d like to use as context, let me know and I’ll help out more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
i got an object with contents of html markup in it, for example: string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.