+ 1
assuming class A is parent and B is child then you should write class B: public class A in simple words a colon is used to inherit one class into another. If more than one parent class is used separate them with comma.
26th Jul 2016, 4:51 AM
Ravindra Sisodia
Ravindra Sisodia - avatar