100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Class notes AI & ML $9.89   Add to cart

Class notes

Class notes AI & ML

 1 view  0 purchase
  • Course
  • Institution

Easy way to study the python oops concepts by this nots . Basically oops contains 6 types they are explained in this documents

Preview 2 out of 13  pages

  • April 22, 2024
  • 13
  • 2023/2024
  • Class notes
  • Ginesh
  • All classes
avatar-seller
SREE NARAYANA GURU COLLEGE
DEPT. OF COMPUTER SCIENCE
I B.Sc Artificial Intelligence & Machine Learning [2023-2026]
JAVA PROGRAMMING


UNIT I


OBJECT-ORIENTED PARADIGM:
The term Programming paradigm means the methodology for writing program codes. In general,
two paradigms govern how you can construct a program. These two ways are:

1. a process-oriented model
2. an object-oriented model
Many programming languages support both the paradigms like python. Python allows the users to
code using both process-oriented and object-oriented methodologies. However, Java is exclusively
object-oriented.

The object-oriented programming paradigm
(OOP) has a completely different approach to problem-
solving. It does not focus on the problem that needs to be
solved but focuses on the objects that make up the system. We
can compare objects with real-life entities like a car or a dog,
and all these objects have a state and behaviour.
For example, a car state includes its name, colour, brand, and its behaviour includes moving,
slowing down, and changing gears.
Therefore, the goal of an object oriented paradigm is to represent the real world while writing
code.




GINESH.M | ASST. PROFESSOR | SNGC COLLEGE COIMBATORE pg. 1

, BASIC CONCEPTS OF OBJECT-ORIENTED PROGRAMMING:

It simplifies software development and maintenance by providing some
concepts:

o Object
o Class
o Inheritance

o Polymorphism
o Abstraction
o Encapsulation

Class:
Collection of objects is called class. It is a logical entity.
A class can also be defined as a blueprint from which you can create an individual object. Class
doesn't consume any space.
Object:
An object can be defined as an instance of a class, and there can be multiple instances of a class
in a program. An Object is one of the Java OOPs concepts which contains both the data and the
function, which operates on the data. For example – chair, bike, marker, pen, table, car, etc.
Inheritance:
When one object acquires all the properties and behaviors of a parent object, it is known as
inheritance. It provides code reusability. It is used to achieve runtime polymorphism.
Polymorphism:
If one task is performed in different ways, it is known as polymorphism. For example: to convince
the customer differently, to draw something, for example, shape, triangle, rectangle, etc. In Java, we
use method overloading and method overriding to achieve polymorphism.

Another example can be to speak something; For example, a cat speaks meow, dog barks woof,
etc.
Abstraction:
Hiding internal details and showing functionality is known as abstraction. For example phone
call, we don't know the internal processing. In Java, we use abstract class and interface to achieve
abstraction.



GINESH.M | ASST. PROFESSOR | SNGC COLLEGE COIMBATORE pg. 2

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller arshadachu. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.89. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82956 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.89
  • (0)
  Add to cart