OOPs concept in java

 What is OOPs?

  • OOPS, the standard form is Object Oriented Programming Structure.
  • It is one of the ways of solving complex problem into the smaller problem by using objects.
  • Before using OOPS, programs were written in a procedural language i.e. C language, they were nothing but a long list of instructions.

Problems in C and overcome by OOPS:

  • If declare global variable then all function known that value because of the global variable is public so anyone can access i.e. here not possible the particular function only knowns the global value and data are not secure.
  • But, in the oops concept of having and managing objects and classes in java, the program key building block is Data. Therefore, secure data is tightly using access specifiers, classes, encapsulation, and so on.

Uses of oops or why it used?

  • Reducing program lines.
  • Data secure.
  • Easy way to find errors.
  • Execution speed is fast.

Features of oops in Java:

  • Class and object
  • Methods
  • Constructor and Destructor
  • Arrays
  • Encapsulation
  • Abstraction
  • Polymorphism
  • Inheritance
  • Interfaces
  • Exception handling
  • Threads
  • Method overloading and overriding


No comments:

Post a Comment

Popular Posts

Search This Blog

Powered by Blogger.

Blog Archive

Service Support

Need our help to Learn or Post New Concepts Contact me

Blog Archive

Recent Posts

Service Support

Need our help to Learn or Post New Concepts Contact me