updatessssss.
sir sepulveda is giving us a take home exam due wednesday. oh. O_O
1] [10 pts] What are objects? what are the basic 'parts' of an object? compare objects of the real world and objects of in Java. in what ways are they similar? how are they different?
2] [10 pts] what is a class? give analogies that can help describe/illustrate this concept.
3] [5 pts] how are objects and classes related? which depends on which? how?
4] [20 pts] write a short out-of-the-box java program that illustrates OOP. (points will depend on syntax correctness, object-orientedness, and creativity)
bond paper. can be written/computerized. :)
rarararararrrr. >_<
[out-of-the-box program]
public class Man{
...
}
public class Tambay extends Man{
...
}
public class Dog{
...
}
public class RabidDog extends Dog{
...
}
&&
public class AghamRoad{
method{
Tambay jun = new Tambay();
Dog brownie = new RabidDog();
jun.kick(brownie);
if (brownie.isMad()){
brownie.bite(jun);
}
}
brownie = cute. :)