I\'ve a following problem. I have a model class in MVC and it has a special purpose. In certain cases it should be able to override itself. Is this kind of behavior possible?
This is my first time here so i hope you can help me. This is my problem: I\'m busy with a log-in script in oop.
Q1. Can I have an interface insi开发者_运维知识库de a class in java? Q2. Can I have an class inside an interface?
What is the biggest drawbacks if I were to create type of everything, instead of using Strings and primitive types?
Is this possible in iOS, or do I really have to register a shake event detection in every single view controller?
In the past I would just create a class to connect to a database, and then run a bunch of methods to run queries.. like so:
This qu开发者_Python百科estion already has answers here: Closed 11 years ago. Possible Duplicate: Try to describe polymorphism as easy as you can
They always talk about extendability and flexibility when writing code, but here I am wanting to expand my webapp and I have no idea how to do it.
I\'ve got this model class Question < ActiveRecord::Base has_many :votes def to_s \"hello?\" end end and when I attempt to display a Question with <%= @qu开发者_如何学Pythonestion %>
I\'m posting a ghost here, that daunts me for some years. It\'s a question about how to build the right model, the right objects.