In this video we have discuss Upcasting in Java
Up-casting in Inheritance?
The reference variable of super class refers to the object of sub class is called Up-Casting in java
Parent p = new Child();
a) We can access everything from super class and from sub class only overridden method, means Overridden method will called from sub class.
b) We cannot access the own properties of sub-class
c) If both the class have common instance variable then Super class variable will come because variable calling is depend on type. Means we cannot override variables.
d) It is same as Left join of MySQL.
e) Down-Casting is vice-versa of up-casting but it not supported in java.
JAVA INTERVIEW QUESTION PLAYLIST....
• Playlist
Subscribe to our Channel...!
/ @pahadicoder
Follow us on Instagram..
/ pahadi_coder_
#java #youtubeshorts #javatutorials #variable #pahadiCoder
#javaprogramming #shorts #youtubeshorts #ytshorts #corejava #javainterviewquestion24
#pahadicoder #PahadiCoder
#javaprogramming #UpcastingInJava
#UpcastingJavaExample
#UpcastingExample
#WhatIsUpcasting
related tags
upcasting
Upcasting in java with Example
Java Upcasting
upcasting in java
what is upcasting
what is the use of upcasting in java
java programming
upcasting and downcasting in java
upcasting and downcasting in java english
#JavaInterviewQuestionsandAnswers #JavaInterviewQuestions #help4code #JavaInterview #CoreJavaInterviewQuestions #JavaInterviewQuestionsandAnswersForExperienced #JavaTutorial #JavaProgramming #JavaTutorialForBeginners #java #interviewtips #javafullcourse #campusinterview
На этой странице сайта вы можете посмотреть видео онлайн Upcasting in Java | Java Interview Question 24 | Pahadi Coder длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Pahadi Coder 03 Март 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,365 раз и оно понравилось 56 зрителям. Приятного просмотра!