Загрузка...

Core Java: Object Oriented Approach, Class, Object, Function, Variable | Computer Science (3/4)

Practice Computer Science and complete notes: https://www.doorsteptutor.com/Exams/UGC/Computer-Science/ For long answers: https://www.doorsteptutor.com/Exams/GATE/Computer-Science/ NTA NET Paper 1 Online Crash Course - https://www.doorsteptutor.com/Exams/UGC/Paper-1/Online-Crash-Course/ NTA NET Paper 1 Mock papers - https://www.doorsteptutor.com/Exams/UGC/Paper-1/Online-Test-Series/ NTA NET Paper 1 Practice questions - https://www.doorsteptutor.com/Exams/UGC/Paper-1/Questions/ NTA NET Paper 1 Postal Course - https://www.examrace.com/NTA-UGC-NET/NTA-UGC-NET-FlexiPrep-Program/Postal-Courses/Examrace-NTA-UGC-NET-Paper-I-Series.htm NCERT, Yojana, Kurukshetra, Down to Earth, Science, Social Studies and More interesting topics subscribe at Examrace: https://www.youtube.com/c/Examrace NCERT, Yojana, Kurukshetra, Down to Earth, Science, Social Studies and More interesting topics subscribe at ExamraceHindi: https://www.youtube.com/c/ExamraceHindi For classes nursery to class 5 videos subscribe to FunProf: https://www.youtube.com/c/FunProf For Science Class 11-12 and important topics subscribe to DoorStepTutor: https://www.youtube.com/c/DoorstepTutor TOPICS TO BE COVERED Taking input from the console during run-time Scanner Class Pre-defined Methods of Scanner Class Object Oriented Approach Classes & Objects Functions Variables Local Variables Class Variables Instance Variables Taking Input From Console- Scanner Class We use scanner class to accept values from the console during run-time. We can use this class by making object of the scanner class. For Example: Scanner s=new Scanner(System.in); Scanner class is a predefined class which is defined in java.util package. That’s why to use Scanner class, we have to import java.util package. CODE Import java.util.*; Here java is main package and util is a sub package created inside. Package, sub package and class is always separated with dot (.). Pre-defined Methods Of Scanner Class Code/Output Oriented Approachobject As we know, Java is an object oriented language. It supports various object oriented concepts that are as follows: Object and Classes Inheritance Polymorphism Abstraction Encapsulation Chapters: 0:00 Core Java 0:06 Topics 0:56 Taking Input from Console-Scanner Class 1:24 Example of Console-Scanner Class 2:08 Import Java Util 2:25 Table of Function Method 3:24 Program of the Output 5:00 Object Oriented Approach 7:00 Classes & Object 8:06 Functions/Methods 9:13 Variable-Local Variable 10:23 Variable-Instance Variable 11:22 Variable-Class Variable 12:42 Questions #corejava #topics #console-scannerclass #importjavautil #functionmethod #programoftheoutput #objectorientedapproach #classes&object #functions/methods #localvariable #instancevariable #classvariable #testprep #ugcnet #doorsteptutor #examrace

Видео Core Java: Object Oriented Approach, Class, Object, Function, Variable | Computer Science (3/4) автора Программирование и Алгоритмы
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки