Город МОСКОВСКИЙ
01:23:39

# 21 OOPS in Java | Object | Class | Reference Id | Reference Variable Java Tutorial | Java Basi

Аватар
Java Uncovered: раскройте суть
Просмотры:
22
Дата загрузки:
05.12.2023 09:44
Длительность:
01:23:39
Категория:
Технологии и интернет

Описание

What is object oriented programming?
It is the programming methodology which we can relate to the real world in order to simplify the software development and maintenance.
This methodology has many concepts like:
• Polymorphism
• Inheritance
• Encapsulation
• Abstraction
• Class
• Object etc...

Collectively these concepts are called OOPs. (Object Oriented Programming Concepts).


Object: - The term object can be explained in so many ways
• From real world point of view
• Form coding point of view
• From memory point of view
• From class point of view

 Object is any things which exist is the real word which we can see, touch feel & imagine.
 Every real-world entity is called object.
 Every real-world entity which physical logical tangible or intangible existence knows as object.
Every object has the following three characteristics: -
1. State
2. Behaviour
3. Identity

#Example
If we have a Mobile phone then its characteristics be like
State: - Colour, Price, Dimensions, Camera, RAM, ROM etc.
Behaviour: - Calling, Mailing, Messaging, Internet Surfing.
Identity: - IMEI Number.

Now we know that every object has, state, behaviour, and identity but in real world we can see that there are many objects in the real world which have same state and behaviour and this is a problem so to overcome this problem we categorize the objects. Thus we find the solution in the form of class of categorization.

Class or Classification: -
 A class is the logical categorization of similar type of object.
 A class is combination of data member and member function.
 A class is the blue print from an object
 A class is the user define data structure.
 A class is user define data type.
 A class is the way to implementing the encapsulation


Class: - A class is the template (blue print) for an object and object is the instance for the class.
#Syntax to create a class in java
class Identifier
{
[ Data Member]
[Member Function]
Special Member Function
Constructor
[Initializer (init block & static block)]
}
[ ] symbol indicate that this is optional for the class.


Stay tuned with me for more upcoming Videos,
don't forget to subscribe my YouTube Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺

Storage option url-
https://www.youtube.com/watch?v=KgCfx...

Connect on Socials:-

Facebook:- https://www.facebook.com/AndroJavaTec...
Twitter:- https://twitter.com/AndroJavaTech4U
Google Plus:- https://plus.google.com/u/0/+AndroJav...
LinkedIn:- https://www.linkedin.com/in/androjava...

#Object #Class #OOPS

java Basic Java Tutorial for beginners
Basic Java Programming for beginners

Рекомендуемые видео