We all know that you cant remember evrything that you learn. So my question is when you go over costumer houses/ businesses do you take and refrence material with you? If yes how those costumer react when you bust a book open infront of them. i just got my mcsa and ccna certifications and i [...]
Full Story »this question is for all curently working in the field it /pc technicians?
Question of Operator overloading & Polymorphism?
How can we improve the following program to do the same thing OOP using polymorphism.
float area (float);
float area(float,float);
float area(float r)
{
return 3.1416 * r;
}
float area(float l, float w)
{
return l*w;
}
main()
{
float rad,l,w;
coutrad;
cout
polymorphism and inheritance question!?
Give some example where polymorphism and inheritance is used.
I think i know what each mean but can some one give me a real life example and tell me how polymorphism and inheritance are used in programing?
Thanks …
Polymorphism/Array Question?
I am having difficulty getting my head around this concept.
How would I have an empty array of int in my super class, and then assign values to this array with each child class. For example:
class Figure
{
int[] atk = new int[5];
public boolean exists()
{
return true;
}
public void move()
{
System.out.println(“Changing Position”);
}
}
public class Mage extends Figure
{
[...]
Java question – Polymorphism?
class Cat {
String whatAmI() {
return “I’m a Cat!”;
}}
class Kitten extends Cat {
String whatAmI() {
return “I’m a Kitten!”;
}}
class NinjaKitten extends Kitten {
String isKickedBy(Kitten k) { return “Ouch!”; }
}
Cat bob = new NinjaKitten();
System.out.println(“Bob: ” + bob.whatAmI());
My question is what is bob’s static type and what is his dynamic type?
Please help, question about CCNA. . .?
Ok so I am a young woman who graduated with a liberal arts BFA from DePaul University. Since that time I have done some projects in the arts and bartended to pay the bills. About a year ago my brother, who works for GMO in Japan, started talking to me about the CCNA program. I [...]
Full Story »What should i write for this question related to oops concept?
“Describe the applications of object oriented programming”
Should i write key concepts of oops concept? i mean 1)objects 2)classes 3)encapsulation 3)polymorphism 4)Inheritence etc? is this the correct answer?
Common Interview Question http://webaspdotnet.blogspot.com/2008/06/interview-question.html?
Most Frequently Asked Interview Question
http://webaspdotnet.blogspot.com/2008/06/interview-question.html
C# inheritance/polymorphism question.?
I have a problem when coding in c#. I have a GameObject class that I am using as a template and a class that inherits from that called Boomerang. My Game Object class has 2 pure virtual functions Draw() and Update(). The problem comes when I make a GameObject Array and put [...]
Full Story »C++ Polymorphism question?
I have a class called Object, and a class called Weapon that is a sub class of Object.
How do I put a Weapon in this vector and have it recognized as type Weapon, not Object?
vector inv_item;
note: this is what I tried but it doesnt work.
…SetItem(Weapon &newobject)
inv_item.push_back(weapon);
…SetItem(Weapon &newobject) {
inv_item.push_back(newobject);
…