The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
77 views

My take at OOP module/prototyping JavaScript

The last month I've been reading up on how to take my JavaScript code to the next level. I am a Java programmer at heart, so it feels nice when everything is encapsulated in classes/objects, and these ...
2
votes
1answer
48 views

Least amount of HTML and CSS to create a bottom border for every section?

I am doing a redesign and have some previously existing content in HTML that is similar to <p class="testimonial-text">Bacon ipsum dolor sit amet aliquip est tail occaecat bacon ad qui short ...
2
votes
2answers
74 views

My self-study inheritance and sub-class exercise.

I'm self-studying Java and have a question about one of the end-of-chapter exercises. The chapter focus is on inheritance and the book hasn't officially introduced polymorphism so I'm trying to stay ...
-1
votes
1answer
91 views

Should I use inheritance in my case? [closed]

UPDATE - I write in C#. The code is added below. I have 2 classes that should run a service when calling their Start method, but before it they should: Copy items to F folder Open S service in ...
0
votes
1answer
31 views

Ruby on Rails Single Table Inheritance [closed]

I'm trying to set up single table inheritance in Rails. I have single table called Finances, with a type set to Income or Expense. My code is here: https://gist.github.com/caser85/5096447 Ok, I got ...
1
vote
2answers
105 views

PHP Class Inheritance / Object Instantiation / Object / Property Scope w/ Child / Parent Classes & Dependency Container Class

In PHP, I have a parent/child class and am using dependency container to load them. I am trying to use the same database connection on all of them without duplicating the object. CLARIFICATION: MY ...
2
votes
1answer
191 views

Instantiation/Inheritance Helper — Optimization / Pitfalls

For the sake of learning javascript better and getting used to the Google Chrome Extension Api, I'm currently writing a little Chrome Extension. To keep things simple and being able to make use of ...
3
votes
2answers
73 views

How would you improve this object model design to get around Covariance Issues with ObjectModel.Collection<T>?

Consider the following simple relationship. Code [DataContract(Name = "Wheel")] public class Wheel { } [DataContract(Name = "OffRoadWheel")] public class OffRoadWheel : Wheel { } ...
3
votes
3answers
230 views

Creating students and instructors

It's simple. Person is a superclass. Student and Instructor are its subclasses. The program suppose to allow user create a student or an instructor. Run package com.exercise.inheritance1; import ...