Answer to Question #239308 in Java | JSP | JSF for Tarurendra Kushwah

Question #239308

Implement the concept of inheritance with example. 


1
Expert's answer
2021-09-20T00:11:44-0400
class Student{
 void Student_Details() {
  System.out.println("Student Details...");
 }
}


class Marks  extends Student {
 void Marks_Details() {
  System.out.println("Student Marks ...");
 }
}


public class Main {
 public static void main(String args[]) {
  Marks  s = new Marks ();
  s.Student_Details();
  s.Marks_Details();
 }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS