Articles below will introduce you to object-oriented programming if you have never used Object Oriented programming language before. Topics...
Articles below will introduce you to object-oriented programming if you have never used Object Oriented programming language before. Topics on objects, classes, inheritance, and packages that are vital to all OOP languages are covered here.
- What is an object -is a software bundle that has a state and behavior that relates?This topic will introduce the concept of data encapsulation and explain is importance.Objects enable one to hide the implementation of a software from the outside world.
- What is a class-The main use of a class is to model objects state and behavior?Simply classes are a blueprint from which we are able to create objects.
- What is inheritance-In Java , Inheritance enables a child class to inherit or adopt state and behavior of a superclass. This is done by use of extends keyword
- What is an interface-When a class implement interfaces, that becomes a contract in that it must have state and behavior just like the interface?
- What is package-Large projects are easier to manage courtesy of packages. A package is a namespace for that programmers use to put interfaces and classes in a logical manner.With a package, a class can be restricted accessing variables of a class in another package.