For example. Assume I do:
dev.new(width=5, height=4)
plot(1:20)
And now I wish to do
plot(1:40)
But I want a bigger window for it.
I would guess that the way to do it would be (assuming I don't want to open a new window) to do
plot(1:40, width=10, height=4)
Which of course doesn't work.
The only solution I see to it would be t...
I'm learning C# and I encountered the following problem. I have two classes: base and derived:
class MyBase
{
public void MyMethod()
{
Console.WriteLine("MyBase::MyMethod()");
}
}
class MyDerived: MyBase
{
public void MyMethod()
{
Console.WriteLine("MyDerived::MyMethod()");
}
}
For now, withou...
I'm currently looking for a QBE tool that can execute
queries on PostgreSQL or MySQL.
OS doesn't really matter.
Reason is that we've got to do QBE at school but I don't want to use neither Microsoft Access nor OpenOffice.org Base (lack of features).
Any help would be appreciated.
...
hello,
in c++ you can put a member in a base class and a member with the same name in the inherited class.
how can i access a specific one in the inherited class?
thanks!
...
Thus for used base class for some commom reusable methods in every page of my application...
public class BaseClass:System.Web.UI.Page
{
public string GetRandomPasswordUsingGUID(int length)
{
string guidResult = System.Guid.NewGuid().ToString();
guidResult = guidResult.Replace("-", string.Empty);
return guidResul...
hi there
i design a multilayer we appliction andusing LINQ a my data provider
i need to user my own Entites instead o LINQ etities. so i created Entities Project and create my entities in it.
when i get data from contex and cast them to my entities , everything is ok.
but when i want to cast on of my entities to linq entity , an excepti...
I would like to create a base class that is somewhat generic for all of my entities. The class would have methods like Save(), Delete(), GetByID() and some other basic functionality and properties. I have more experience with Linq to SQL and was hoping to get some good examples for something similar in the EF. Thank you.
...
Hi All,
I want to have an abstract base class for some of my custom UserControl's. The reason is obvious: they share some common properties and methods (a basic implementation of some elements of an interface actually), and I want to implement them only once.
I have done this by defining my abstract base class:
public abstract class V...
I have a class Car and a derived SportsCar: Car
Something like this:
public class Car
{
public int TopSpeed{ get; set; }
}
public class SportsCar : Car
{
public string GirlFriend { get; set; }
}
I have a webservice with methods returning Cars i.e:
[WebMethod]
public Car GetCar()
{
return new Car() { TopSpeed = 100 }...
Can I somehow force a derived class to always call the overridden methods base?
public class BaseClass
{
public virtual void Update()
{
if(condition)
{
throw new Exception("..."); // Prevent derived method to be called
}
}
}
And then in a derived class :
public override void Update()
{
...
I have made a class in php which is goind to be inherited by another class in the other folder.
when i put echo $this->protectedvariableofclass; //in subclass function
it gives no value
remember my base class is stored \class\user.php
sublass is stored as \model\model_user.php
Please help me out
Thanks in advance
Base Class in \class\...
hi every one
I'm want to know how's correct way to use Xml in sdk for web base application
i'm trying to do magazine in iphone but they told me that i have to use XML to take body and other thing from that web site?
please some one direct me to that and if you have any tutorial for that
thanks
...
I'm going to create a base class that implements very similar functions for all of the subclasses. This was answered in a different question. But what I need to know now is if/how I can cast various functions (in the base class) to return the subclass object. This is both for a given function but also a function call in it.
(I'm work...
class Base {
public:
Base() {}
void Foo(int x) {...}
};
class Derived : public Base {
public:
Derived(int args) {
/* process args in some way */
Foo(result);
}
};
Is it allowed to call a method of the base class in the constructor of the derived class?
I would imagine this is fine as the Base ...
Hi everybody,
Everyone knows how to convert number from decimal system to binary. I also do. Everyone also knows how to convert from decimal to the base of three system.
However, I have a problem where I need to convert decimal number to a "strange base 3" system where one symbol cannot be the first one and should be surrounded by the ...
I have a problem with base tag. It looks like
<base href="http://myexamplepage.com/myfolder/" />.
Everything works, besides this query:
$.get("application/soft/calendar_month_change.php", ...)
My computer thinks it's cross domain server and changes query to OPTIONS .... When I remove the base tag, it works correctly but my site doesn'...
Hello I'm trying to port some code from Windows to Linux. I have this:
itoa(word,aux,2);
But GCC doesn't recognize itoa. How can I do this conversion to base 2 on a C++ way?
Thanks ;)
...
This is for the purpose of having a nice short URL which refers to an md5 hash in a database. I would like to convert something like this:
a7d2cd9e0e09bebb6a520af48205ced1
into something like this:
hW9lM5f27
Those both contain about the same amount of information. The method doesn't have to be direct and reversible but that w...
The BASE acronym is used to describe the properties of certain databases, usually NoSQL databases. It's often referred to as the opposite of ACID.
There are only few articles that touch upon the details of BASE, whereas ACID has plenty of articles that elaborate on each of the atomicity, consistency, isolation and durability properties....
I haven't found a clear answer to this question (but have determined the HTML tag is more trouble than it's worth.)
When you're working with multiple directories on a website, how do you make sure relative links to the rest of your site work as you change your current directory? I don't want my link to "/index.php" to actually link to ...