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
In questa pagina del sito puoi guardare il video online Upcasting in Java | Java Interview Question 24 | Pahadi Coder della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Pahadi Coder 03 marzo 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,365 volte e gli è piaciuto 56 spettatori. Buona visione!