Java is Object-Oriented

    Java is completed object -oriented langauge. So it allows programmers to greate modular, flexable programs. As in other object oriented langauges such C++, Java contains classes, objects,, encapsulation, interitance, and polymorphism.

 A class is the bass building block of an object-oriented program. it contains variables known as members, and functions, known as methods. An object is simply an example of a particular class. For example, you could have a class named Human, and an object of that class names Jhon.

Encapsulation is the capility to hide class varibles from outside classes. 

Inheritance is the capability of one class to be produced from another.

Polymorphism means that a class can override the implementation of a commonly named method from the class, which produces from.

0 Comments:

Post a Comment