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
On this page of the site you can watch the video online Upcasting in Java | Java Interview Question 24 | Pahadi Coder with a duration of hours minute second in good quality, which was uploaded by the user Pahadi Coder 03 March 2023, share the link with friends and acquaintances, this video has already been watched 1,365 times on youtube and it was liked by 56 viewers. Enjoy your viewing!