What I mean,
interface B;
interface A extends B; allowed
interface A implements B; not allowed
I googled it and I found this -> Implements denotes defining an implementation for the methods of an interface. However interfaces have no implementation so that's not possible.
http://www.coderanch.com/t/410331/java/java/interface-imple...
I explored in some open source projects and found it’s quite difficult to understand the sources. Nowadays, programmers tend to use OO design which leads source very abstract. I don’t mean they are bad, instead, I think the sources are beautiful and powerful but not easy to understand.
My question: Any advice or trick about how to under...
Trying to understand if types imply OO and vice versa.
Questions:
What exactly is a type ?
Can a class in ruby be called a 'type'.
In javascript, the native functions/objects like Array,String,Function ... Are they types ?
Is a C struct a type ?
How is it that a language can be typed even when it doesn't support OO ? For e.g. H...
Hello. I've been writing some Adobe Illustrator javascripts to improve my workflow. I've been really getting to grips with OOP recently so I've been writing it using objects and I really think it helps keep my code clean and easily up-datable. However I wanted to check some best practice with you guys.
I have a rectangle object which cr...
One of the most frequent agruments I hear for not adhering to the SOLID principles in the class design is YAGNI (allthough the arguer often doesn't call it that):
"It is OK that I put both feature X and feature Y into the same class. It is so simple why bother adding a new class (i.e. complexity)."
"Yes, I can put all my business log...
Hello. I am new in Object Oriented Design. I am trying to write simple game where i can set labyrinth as array and add robot to this labyrinth. Robot can do simple actions: goahead(),turnRight(),turnLeft().
How to design this simple application in OOP style?
Help me please
...
If I build several classes and I import the same library for each class, am I going to make my project heavy ?
Or is exactly the same as importing it only once ?
thanks
...
Just what the topic asks. Also want to know why non of the usual examples of CRTP do not mention a virtual dtor.
EDIT:
Guys, Please post about the CRTP prob as well, thanks.
...
Hi,
I am curious.
I am interested in knowing if any languages exist like C++ and Java, in that the langauge is:
(a) Explicitly (ie. not by inference) statically typed, (b) Object Oriented.
I am aware of D, but what others are people using?
Cheers
...
When creating a web page who's content will be created and destroyed dynamically by the user, what is the best way to structure and initialize both the javascript functionality and the DOM Elements?
Example -- Lets say you have a todo-list who's items can be re-ordered, created, and destroyed by the user:
Each Item will have a visual ...
Five years ago I used to program in SAS. Since then I've been doing software QA of various types. Mostly manual (video games + web apps) testing with a tiny bit of automation.
I'd really like to shift careers back into programming. Specifically the Android platform has caught my attention. These are the books I've been reading and worki...
Hi,
is there any Javascript OOP library to easily work with classes, inherence and the like in a more class-based way to avoid prototypical OOP that works with JS both on the client (browser) and on the server (in my case Node.js, but generally that uses javascript core functions, so that can be used no matter the interpreter)?
Thanks....
I started working on this "already started" project, and I'm having a really annoying error when trying to execute some interactions with SQL Server 2008:
The server failed to resume the
transaction. Desc.:
One of these errors I get in this specific method call:
The aspx.cs Call:
busProcesso openProcess = new busProcesso(pProc...
Recently I was hacking out some code to communicate with an external web api. The web api is a set of GET/POST operations that return Xml, called in from my application via HttpWebRequest and manipulated on my side using Linq to Xml.
There is are logical groupings of api methods that form multiple services. I have created classes to r...
Is there any reason to have a private constant, that is not static? Are there any situations that you would need a non-static private const? Would it make sense if constants where static by default?
I use ActionScript3 and some Java, but I think this is a broader OOP question.
...
I have a class that represents a pretty complex object. The objects can be created by many ways: incremental building, by parsing text strings in different formats and by analyzing binary files. So far my strategy was as follows:
Have the constructor (__init__, in my case) initialize all the internal variables to None
Supply different ...
I'm trying to create a class (in C#) that serves as an environment for my application.
I'm trying to make the class dynamic, and send it as a parameter to entities in my application. The problem is, that I want to be able to change the properties of this environment class (public setters), but at the same time I want the classes that re...
Hi,
We're developing a business ASP.NET application. Is it better to pass an entire entity to a method or pass each property of this entity as parameters? What is the best practice?
Case 1. Pass Customer entity to a manager - InsertCustomer(Customer cust)
Case 2. Pass each property as a parameter - InsertCustomer(string name, string add...
I'm trying to have some object oriented design using JS and jQuery.
I have the following construstor:
function A () {
this.url = "some url";
$("rrr").autocomplete({
source: function(req, add){
$.getJSON(this.url, req, function(data) {} ...
}
As you guessed, I can't use this.url, since jQuery redefienes this. I can't u...
Hi sorry if the name of my question is not correct.
i am trying to create an image rotator, but i would like to be able to re-use it more than once in a page, so i am trying to create it as an object/class.
I have about 5 or 6 images on a page.
i would like to have each image as a rotator, displaying a new image every 2 seconds or so...