Introduction to Classes and Objects Solved Examples in Java OOP in Urdu Hindi
#Java
#Programming
Introduction to Classes and Objects Solved Examples in Java OOP in Urdu Hindi
In this lecture we will understand what is an object in java in Urdu Hindi. Then We will discuss what is class in Java in Urdu Hindi.
Java Class and Objects/Entity
Java is an object-oriented programming language. It is based on the concept of objects.
These objects share two characteristics:
• state (fields)
• behavior (methods)
For example,
1. Lamp is an object
State/Properties: on or off
Behavior/Methods: turn on or turn off
2. Bicycle is an object
States/Properties: current gear, two wheels, number of gear, etc.
Behavior/Methods: braking, accelerating, changing gears, etc.
Java Class
3. Before you create objects in Java, you need to define a class. A class is a blueprint for the object.
4. We can think of the class as a sketch (prototype) of a house. It contains all the details about the floors, doors, windows, etc. Based on these descriptions we build the house. House is the object.
5. Since many houses can be made from the same description, we can create many objects from a class.
How to define a class in Java?
Here's how we can define a class in Java:
class ClassName {
// variables/Pro/State
// methods
}
For example,
class Lamp {
// instance variable
private boolean isOn;
// method
public void turnOn() {
isOn = true;
}
// method
public void turnOff() {
isOn = false;
}
}
Java Objects
An object is called an instance of a class. For example, suppose Animal is a class then Cat, Dog, Horse, and so on can be considered as objects of Animal class.
Here is how we can create objects in Java:
className object = new className();
How to access members?
Objects are used to access members of the class. We can access members (call methods and access instance variables) by using the . operator.
While Loop in java with Example:
https://youtu.be/iHiUp8xFiWU
Watch If else if statement in java
https://www.youtube.com/watch?v=B1xm5lE_tdI&list=PLbIhkHxfUIItBvQFLLBQ931EvSFqK9tgA&index=14
School Management System Project in Java Netbeans
https://www.youtube.com/playlist?list=PLbIhkHxfUIIs_QM5x2z0IZhzlD7X0Y44-
Please Subscribe Our Channel and enable notification to watch out latest video lectures
For More Lectures and Source Codes Please visit our website:
https://myustaadg.com/
Java Programming Course at Our Website:
https://myustaadg.com/java-programming-lectures/
C++ Programming Course at Our Website:
https://myustaadg.com/cpp-programming/
Python Programming Course at Our Website:
https://myustaadg.com/python-programming/
Useful Links For Programming Courses:
To watch full C++ Programming Full Course in Urdu playlist
https://www.youtube.com/playlist?list=PLbIhkHxfUIIu1lkGeMVVRe7DqWPACsYDg
To watch full Basic C++ practical Exercises playlist
https://www.youtube.com/playlist?list=PLbIhkHxfUIIswdDJD1spIht5aH9MLq-54
To watch array and structures in C++ Programming
https://www.youtube.com/playlist?list=PLbIhkHxfUIItTdcyCb34uRIrPJbXBndIl
To watch Java Programming Lectures
https://www.youtube.com/playlist?list=PLbIhkHxfUIItBvQFLLBQ931EvSFqK9tgA
Visit Our Facebook Page
https://www.facebook.com/neverhang
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Introduction to Classes and Objects Solved Examples in Java OOP in Urdu Hindi», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.