oops home

oops

Object Orinted programming

Introduction OOP's

Oop's is fullform object Orinted programming System or structure. oops is a programming paradign methodalogy.

Object-Oriented Programming is a paradigm that provides many concepts, such as inheritance, data binding, polymorphism, etc.

Simula is considered the first object-oriented programming language. The programming paradigm where everything is represented as an object is known as a truly object-oriented programming language.

Smalltalk is considered the first truly object-oriented programming language. The popular object-oriented languages are Java, C#, PHP, Python, C++, etc.

OOPs Advantage

  • OOP is faster and easier to execute
  • OOP provides a clear structure for the programs
  • OOP makes it possible to create full reusable applications with less code and shorter development time
  • OOPs makes development and maintenance easier, whereas, in a procedure-oriented programming language, it is not easy to manage if code grows as project size increases.
  • OOPs provides the ability to simulate real-world event much more effectively

OOPs (Object-Oriented Programming System)

Object means a real-world entity such as a pen, chair, table, computer, watch, etc. Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies software development and maintenance by providing some concepts:

1.Class

class is collection of object. class is not a realworld entity it is a just part template / blue print or prototype

class is not occupy memory. A class can also be defined as a blueprint from which you can create an individual object. Class doesn't consume any space. Collection of objects is called class. It is a logical entity.

Class

syntax

Access modifire class ClassName
{
body class
method
Constructor
field
block
}

1.1method

method is the a set of code with perform a particular task.

it is particular block of code given a specific condition code . main two Advantage of method is code reusability and code optimization

syntax

Access modifire returntype MethodName ( list of parameter )
{
body of method
}

Next Topic

No comments:

Post a Comment

How do you select data from a table in SQL?

Create Table How do you select data a table in SQL? The SELECT statement is used to se...