public class Main
{
public static void main(String a[])
{
System.out.println("Hello World");
}
}
above is the java program. java is an Object Oriented Language. I want to know what Object oriented Concepts above program applying?
> Here's a possible list:
>
> abstract data types
> encapsulation
> data hiding
> polymorphism
> inheritance
> overriding
> run-time typing
>
> I agree with the previous poster - this is a very
> elementary question to be posting to this forum. -
> MOD
>
Sounds like somebody's fishing for an exam answer here...
If you know anything about Java, go down that list of features and see where they fit into your "Hello, World".
If you think about it a little, you might learn something. It'll stay with you longer than just getting the answer off a forum. C'mon, think! - MOD
1) Class Main inplicitly extends Object so Inheritence?
2) String is an Abstract Data type.
3) Class System and Main are Abstract Data types? i doubt
4) Encapsulation ? i doubt beacuse no data members only methods
anything i left ? anywhere i am wrong?
> Sounds like somebody's fishing for an exam answer
> here...
>
> If you know anything about Java, go down that list of
> features and see where they fit into your "Hello,
> World".
>
> If you think about it a little, you might learn
> something. It'll stay with you longer than just
> getting the answer off a forum. C'mon, think! - MOD
ppatidar2001, that's a start.
Why do you doubt yourself so much?
Instead of sending in a whining, open-ended question like the one you posed, why not give the list you posted on 3-Oct-2003 and ask if you've missed something? It would have shown that you know a little bit and that you were willing to take some initiative.
I'd say that System.out is a Stream, which is another O-O construct. But that's about it. There's not that much there.
Stop whining and start thinking. You'll get more play on this list if you do. - MOD