Java, Programming Languages, Programming, Inheritance, Computer Science.
package com.polovyi.ivan.tutorials; public class Examples { public static void main(String[] args) { SubClass subClass1 = new SubClass("value1", "value2"); subClass1.printValues(); SubClass subClass2 = new SubClass("SubClass value1", "SubClass value2", "SubClass value3", "SubClass value4");