I have always considered a programming language a tool to implement the logic and get the results out. Each of the languages have their own use and abuse ( well what ever it meant! ), choose the most optimal as per the need.
Oh!! this rant btw, refers to learning Java in the classroom.
I would any day prefer to learn the constructs of object oriented design and programming, implement the same using Java in a mini project.
Instead it feels so lifeless to be learning a language sitting in the class.
Yesterday's class covered the concept of interfaces in Java. The concept of interfaces is quite interesting to add abstraction to the code. Make code extensible etc., One can read about interfaces here.
Let me apply some new learning to express what i think :D
Code follows
/**
* Life is an abstract class;
* - will be explained in due course of time.
* The class Me defines what i am.
* Currently i implement Zombie!
* So i am a Zombie and lifeless :P
* Yes you got it. Sitting in a programming
* language class is being lifeless.
*/
public interface Zombie {
public Life lifeStatus();
}
public class Me implements Zombie{
public Life lifeStatus() {
return NoLife;
}
}
3 comments:
public class me implements Kumbhakaaranam
{
//sleep hours cross 12 hours specially day before exam
}
LoL!!u haven't provided the implementation of the methods of interface Kumbhakaranam :P
Shreya wheres the implementation. java.abstraction exception :P
and ur method will be kumbhakarni :P
Post a Comment